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

Function negative

packages/zod/src/v4/classic/schemas.ts:1036–1038  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

1034 return this.check(checks.gte(0, params));
1035 },
1036 negative(params) {
1037 return this.check(checks.lt(0, params));
1038 },
1039 nonpositive(params) {
1040 return this.check(checks.lte(0, params));
1041 },

Callers

nothing calls this directly

Calls 2

checkMethod · 0.65
ltMethod · 0.65

Tested by

no test coverage detected