Caffeinated Coder
Book an appointment
Lesson 11 · Advanced and in practice

Utility types

A utility type is a generic type built into TypeScript that makes a new type from one you already have. Follow one User interface through Partial, Readonly, Pick and Omit, watch tsc reject a key User does not have, and open up Partial to find the mapped type inside.

11 min9 steps5 questionsBeginner
Fig 11 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.