Pick
Pick<T
, K
>: { [P in K]: T[P] }
From T, pick a set of properties whose keys are in the union K
Type parameters
T
objectRequiredK
keyof TRequiredWas this section helpful?
Pick<T
, K
>: { [P in K]: T[P] }
From T, pick a set of properties whose keys are in the union K
T
objectRequiredK
keyof TRequired