The Uppercase utility type converts an entire string to uppercase.

Structure

Uppercase<StringType>

Example

type Greeting = 'Hello' | 'Hi'
type Name = 'Ahmad' | 'Bilal';
type UppercaseGreetingAndName = Uppercase<`${Greeting} ${Name}`>; // "HELLO AHMAD" | "HELLO BILAL" | "HI AHMAD" | "HI BILAL"