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

Method merge

packages/zod/src/v4/classic/schemas.ts:1408–1408  ·  view source on GitHub ↗

* @deprecated Use [`A.extend(B.shape)`](https://zod.dev/api?id=extend) instead.

(other: U)

Source from the content-addressed store, hash-verified

1406 * @deprecated Use [`A.extend(B.shape)`](https://zod.dev/api?id=extend) instead.
1407 */
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>

Callers 5

object.test.tsFile · 0.65
complex.test.tsFile · 0.65
mergeFunction · 0.65
object.test.tsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected