Description
Transforms the first string character to lowercase for string literal types.
Syntax
type UncapitalizedGreeting<T extends string> = `${Uncapitalize<T>}`
type HELLO = CapitalizedGreeting<"Hello">;
// same as
// type HELLO = "hello";
Nov 23, 20201 min read
Transforms the first string character to lowercase for string literal types.
type UncapitalizedGreeting<T extends string> = `${Uncapitalize<T>}`
type HELLO = CapitalizedGreeting<"Hello">;
// same as
// type HELLO = "hello";