Type Alias
Noun · Development
Definitions
A named shorthand for an existing type or type expression, introduced with `type` in TypeScript or `typedef`/`using` in other languages. It does not create a new distinct type — it is structurally identical to the original — but improves readability by giving complex types like unions, intersections, or mapped types a meaningful name.
In plain English: A custom name you give to a type so you can refer to a complicated type by a simple, meaningful label.
Example: "I created a type alias `UserId = string` so if we ever migrate to UUIDs we only change it in one place."