1×
Become a member
to unlock all features
Autoplay

    Transform Existing Types Using Mapped Types in TypeScript

    typescriptTypeScript
    ^2.0.0

    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.