Skip to main content
Module

x/froebel/mod.ts>transformCase

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

Transform a variable name to targetCase

type

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