Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/froebel/case.ts>transformCase

A strictly typed utility library.
Latest
variable transformCase
import { transformCase } from "https://deno.land/x/froebel@v0.23.2/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