ruk·si

🏷️ TypeScript
Type Aliases

Updated at 2024-08-02 03:01

TypeScript includes type aliases for assigning easier names to reused types.

Type aliases are purely a development-time construct.

Type aliases should be in PascalCase.

type PersonName = string;

Sources

  • Learning TypeScript by Josh Goldberg