Lesson 3.2
Mapped types and key remapping
Mapped types transform every property of a type at once, which is where Partial, Readonly, and their friends come from.
7mIntermediate14.1k students
Overview
What this lesson covers
- Transform every property of an existing type
- Add or strip optional and readonly modifiers
- Remap keys with an as clause
This lesson sits in Advanced Types, part of TypeScript for Application Developers. It assumes what came before it and leads directly into the next lesson in the module.
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
Your notes will live here soon.