Transform Existing Types Using Mapped Types in TypeScript

InstructorMarius Schulz

Share this video with your friends

Send Tweet

Mapped types are a powerful and unique feature of TypeScript's type system. They allow you to create a new type by transforming all properties of an existing type according to a given transformation function. In this lesson, we'll cover mapped types like Readonly<T> or Partial<T> that ship with the TypeScript compiler, and we'll also explore how to create our own type transformations.