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

Method safeExtend

packages/zod/src/v4/classic/schemas.ts:1401–1401  ·  view source on GitHub ↗
(
    shape: SafeExtendShape<Shape, U> & Partial<Record<keyof Shape, core.SomeType>>
  )

Source from the content-addressed store, hash-verified

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>>
1403 ): ZodObject<util.Extend<Shape, util.Writeable<U>>, Config>;
1404

Callers 6

safeExtendFunction · 0.80
object.test.tsFile · 0.80
extend.test.tsFile · 0.80
safeExtendFunction · 0.80
object.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected