Learn TypeScript: Complex Types
Type structured data: arrays, tuples, rest parameters and spread, enums, object types, type aliases, function types, and generic types and functions.
- Intermediate level
- 2 modules
- 16 lessons
- 65 tasks and questions
Syllabus
01Arrays and TuplesGive arrays element types, nest them for grids, fix their length and order with tuples, see where array inference needs your help, and type rest parameters and spread arguments.7 lessons
02Custom TypesCreate your own types: enums for fixed sets of options, object types for structured data, type aliases to name and reuse types, function types for callbacks, and generic types and functions that work with many element types.9 lessons