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