TypeScript tutorialLesson 26Free preview
TS Advanced Types
This lesson is part of TypeScript · All levels
Summary
Advanced types such as intersection, mapped type, and indexed access allow for complex data modeling. Intersection combines two types so the result has all the properties of both. This technique makes the definition of complex types concise and reusable.
Key points
- Intersection (&) combines properties of two types
- Mapped type iterates on the property
- Indexed access takes type through the lock
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.