utility types

Generic types built into TypeScript, such as Partial, Pick and ReturnType, that compute a new type from an existing one.

In more detail

They let you derive create, update and response shapes from one entity type instead of writing near-copies that drift apart. Most are defined with mapped and conditional types that you can also write yourself.

Related terms

Taught in

References