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

Method extend

packages/zod/src/v4/classic/schemas.ts:1399–1399  ·  view source on GitHub ↗
(shape: U)

Source from the content-addressed store, hash-verified

1397 strip(): ZodObject<Shape, core.$strip>;
1398
1399 extend<U extends core.$ZodLooseShape>(shape: U): ZodObject<util.Extend<Shape, util.Writeable<U>>, Config>;
1400
1401 safeExtend<U extends core.$ZodLooseShape>(
1402 shape: SafeExtendShape<Shape, U> & Partial<Record<keyof Shape, core.SomeType>>

Callers 12

object.test.tsFile · 0.65
extendFunction · 0.65
lazy.test.tsFile · 0.65
object.test.tsFile · 0.65
apply.test.tsFile · 0.65
extend.test.tsFile · 0.65
extendFunction · 0.65
mergeFunction · 0.65
object.test.tsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected