Skip to content

Glossary: TypeScript Beyond the Basics

Mapped type

Also written: mapped types

A type like `{ [K in keyof T]: ... }` that builds an object type with one property for each key in a union. `Partial` and `Readonly` are mapped types.

Where the book teaches it

Related terms

keyofTemplate literal typeUtility type