Description

Transforms the first string character to uppercase for string literal types.

Syntax

type CapitalizedGreeting<T extends string> = `${Capitalize<T>}`
 
type HELLO = CapitalizedGreeting<"hello">;
// same as
//   type HELLO = "Hello";