Complete the code to capitalize the first letter of the string type.
type Capitalized = [1]<'hello'>;
The Capitalize utility type changes the first letter of a string type to uppercase.
Complete the code to uncapitalize the first letter of the string type.
type LowercaseFirst = [1]<'Hello'>;
The Uncapitalize utility type changes the first letter of a string type to lowercase.
Fix the error in the code to capitalize the first letter of the string type.
type FixCap = [1]<'world'>;
TypeScript utility types are case-sensitive. The correct type is Capitalize with a capital C.
Fill both blanks to create a type that capitalizes and then uncapitalizes a string.
type Transform = [1]<[2]<'example'>>;
This type first uncapitalizes the string, then capitalizes it, effectively normalizing the first letter.
Fill all three blanks to create a type that uncapitalizes, capitalizes, and then uncapitalizes a string.
type ComplexTransform = [1]<[2]<[3]<'Test'>>>;
This type applies Capitalize, then Capitalize again, then Uncapitalize, showing nested transformations.