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

Function describe

packages/zod/src/v4/classic/schemas.ts:334–338  ·  view source on GitHub ↗
(description)

Source from the content-addressed store, hash-verified

332 return readonly(this);
333 },
334 describe(description) {
335 const cl = this.clone();
336 core.globalRegistry.add(cl, { description });
337 return cl;
338 },
339 meta(...args: any[]): any {
340 // overloaded: meta() returns the registered metadata, meta(data)
341 // returns a clone with `data` registered. The mapped type picks

Callers

nothing calls this directly

Calls 2

addMethod · 0.80
cloneMethod · 0.65

Tested by

no test coverage detected