Question Preview
What are the main benefits of using a type alias?
type Second = number;
let timeInSecond: number = 10;
let time: Second = 10;
Question Preview
Type aliases are limited to primitive values only
Question Preview
Types in TypeScript can be self-referential
type NumVal = 1 | 2 | 3 | NumVal[];