MCPcopy
hub / github.com/colinhacks/zod / pick

Method pick

packages/zod/src/v4/classic/schemas.ts:1410–1410  ·  view source on GitHub ↗
(
    mask: M & Record<Exclude<keyof M, keyof Shape>, never>
  )

Source from the content-addressed store, hash-verified

1408 merge<U extends ZodObject>(other: U): ZodObject<util.Extend<Shape, U["shape"]>, U["_zod"]["config"]>;
1409
1410 pick<M extends util.Mask<keyof Shape>>(
1411 mask: M & Record<Exclude<keyof M, keyof Shape>, never>
1412 ): ZodObject<util.Flatten<Pick<Shape, Extract<keyof Shape, keyof M>>>, Config>;
1413

Callers 15

stringOptionalMethod · 0.65
stringNullableMethod · 0.65
numberOptionalMethod · 0.65
numberNullableMethod · 0.65
booleanOptionalMethod · 0.65
booleanNullableMethod · 0.65
object.test.tsFile · 0.65
pickomit.test.tsFile · 0.65
pickFunction · 0.65
refine.test.tsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected