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

Function _

packages/zod/src/v4/core/core.ts:58–66  ·  view source on GitHub ↗
(this: any, def: D)

Source from the content-addressed store, hash-verified

56 Object.defineProperty(Definition, "name", { value: name });
57
58 function _(this: any, def: D) {
59 const inst = params?.Parent ? new Definition() : this;
60 init(inst, def);
61 inst._zod.deferred ??= [];
62 for (const fn of inst._zod.deferred) {
63 fn();
64 }
65 return inst;
66 }
67
68 Object.defineProperty(_, "init", { value: init });
69 Object.defineProperty(_, Symbol.hasInstance, {

Callers

nothing calls this directly

Calls 2

initFunction · 0.85
fnFunction · 0.85

Tested by

no test coverage detected