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

Function overwrite

packages/zod/src/v4/classic/schemas.ts:289–291  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

287 return this.check(superRefine(refinement, params));
288 },
289 overwrite(fn) {
290 return this.check(checks.overwrite(fn));
291 },
292 optional() {
293 return optional(this);
294 },

Callers

nothing calls this directly

Calls 2

overwriteMethod · 0.80
checkMethod · 0.65

Tested by

no test coverage detected