mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 03:26:22 +00:00
417 B
417 B
date | id | title |
---|---|---|
2020-11-23 | 4bb57d5a-2f23-4155-b277-9d8446d65db9 | Uncapitalize |
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";