Skip to content

Pick

type Pick<T, K> = { [P in K]: T[P] };

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1606

From T, pick a set of properties whose keys are in the union K

Type Parameter
T
K extends keyof T