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.

6mIntermediate14,114 students
Video thumbnail for Mapped types and key remapping

Sign in to watch this lesson

Browsing is free. Create an account to play videos and track your progress.

Overview

Mapped types transform every property of a type at once, which is where Partial, Readonly, and their friends come from.

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
Mapped types and key remapping — Skiply