- Mastering TypeScript 3
- Nathan Rozentals
- 83字
- 2021-07-02 12:42:46
Advanced types
TypeScript also has some advanced language features that can be used when working with basic types and objects. These features allow us to mix and match types a little more, as well as to create new types that are combinations of other types. In this section of the chapter, we will take a quick look at these advanced type features, including the following:
- Union types
- Type guards
- Type aliases
- Null and undefined
- Never and unknown
- Object rest and spread
- Tuples
- BigInt