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

Function lazy

packages/zod/src/v4/classic/schemas.ts:2448–2453  ·  view source on GitHub ↗
(getter: () => T)

Source from the content-addressed store, hash-verified

2446});
2447
2448export function lazy<T extends core.SomeType>(getter: () => T): ZodLazy<T> {
2449 return new ZodLazy({
2450 type: "lazy",
2451 getter: getter as any,
2452 }) as any;
2453}
2454
2455// ZodPromise
2456export interface ZodPromise<T extends core.SomeType = core.$ZodType>

Callers 1

jsonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected