Pick<Type, Keys>

Creates a new type by selecting one or more properties from an object type.

It is useful when you only need a subset of fields from a larger type.

You can implement your own Pick with an index signature type.

The MyPick type is an improved utility type from the TypeScript FAQs.

Was this page helpful?