PickDeep and PickSelection
PickDeep
is a utility type that expands TypeScript's built-inPick
utility type to pick keys in nested objects.PickSelection
is a utility type that accomplishes the same thing but with a different interface: using selection sets (similar to GraphQL selection or Prisma's selection interface).
While both are still supported, PickSelection
is now the recommended utility type. This blog post will explain why.