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

Function catchall

packages/zod/src/v4/classic/schemas.ts:1468–1470  ·  view source on GitHub ↗
(catchall)

Source from the content-addressed store, hash-verified

1466 return _enum(Object.keys(this._zod.def.shape));
1467 },
1468 catchall(catchall) {
1469 return this.clone({ ...this._zod.def, catchall: catchall as any });
1470 },
1471 passthrough() {
1472 return this.clone({ ...this._zod.def, catchall: unknown() });
1473 },

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.65

Tested by

no test coverage detected