LESSON 3.2
Mapped types and key remapping
Learn key techniques and workflows in TypeScript for Application Developers.
6m
intermediate
14,114 students
Overview
Mapped types transform every property of a type at once, which is where Partial, Readonly, and their friends come from.
In this lesson you will:
- Transform every property of an existing type
- Add or strip optional and readonly modifiers
- Remap keys with an as clause
Pro Tip
Use caching and revalidation wisely to ensure your app stays fast and data remains fresh without unnecessary requests.