Course lesson
Simplify TypeScript code Maintenance with Type Aliases
Type Aliases are an easy way to declare that you are treating a primitive type in your application differently in certain instances than others.
- Duration
- 4 min
- Access
- Included
- Transcript
- Retained from source evidence
Type Aliases are an easy way to declare that you are treating a primitive type in your application differently in certain instances than others.
For instance, a Money type that is type string tells you where ever you are using Money to treat the value a certain way even though at the end of the day it is just a string.
Let's explore Type Aliases in this lesson.