mapped type

A type that builds a new object type by looping over a set of keys, such as { [K in keyof T]: T[K] }.

In more detail

Partial, Readonly and Record are mapped types. They can add or remove the readonly and optional modifiers, and with an as clause rename or drop keys.

Related terms

Taught in

References