Description of Pick

The Pick mapped type is a new addition that comes with TypeScript and it allows you to select a subset of a type’s properties in order to create a dynamic type.

If a type has five members and you only need two of them, there are many possible patterns. Without a mapped type, you have two options. The first one is to create two different types like so:

Get hands-on with 1400+ tech skills courses.