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