Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/froebel/case.ts>transformCase

A strictly typed utility library.
Go to Latest
variable transformCase
import { transformCase } from "https://deno.land/x/froebel@v0.18.0/case.ts";

Transform a variable name to targetCase

type

<T extends string, C extends StringCase>(str: T, targetCase: C) => C extends "snake" ? SnakeCase<T> : never