Skip to content

Glossary: TypeScript Beyond the Basics

Pick and Omit

Also written: Pick, Omit, Pick<T, K>, Omit<T, K>

`Pick` keeps only the named properties of a type, and `Omit` keeps all the others. `NewOrder` is an `Order` with the four server-filled fields omitted.

Where the book teaches it

Related terms

Partial, Required and ReadonlyUtility type