The capitalize utility type in TypeScript capitalizes the first letter of a word in a StringType.

Structure

type nameOfType = Capitalize<StringType>

Example

type HiString = "hi";
type CapitalizeString = Capitalize<HiString>; //Hi