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.

Lesson 3.26m 49sIntermediate14.1k students

Chapters

6:49
  1. 0:00Intro
  2. 0:12Mapped Types
  3. 6:27Outro

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

Resources