TypeScript
TypeScript Type AliasesTypeScript Type Aliases
Type Aliases create custom names for any data type.
Read Time
5 min readDifficulty
BeginnerLast Updated
Jun 15, 2026Version
v1.0.0Introduction
Sometimes writing out complex types gets repetitive and messy. A Type Alias lets developers create a brand new custom name for a specific type or combination of types. It works exactly like a variable, but for types instead of data.
Example
Example
Key Points
- Use the `type` keyword to create an alias.
- They work for primitives, arrays, and objects.
- They keep code highly readable.
- They are very similar to Interfaces, but more flexible.