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

Function positive

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

Source from the content-addressed store, hash-verified

1028 return this.check(int(params));
1029 },
1030 positive(params) {
1031 return this.check(checks.gt(0, params));
1032 },
1033 nonnegative(params) {
1034 return this.check(checks.gte(0, params));
1035 },

Callers 1

Calls 2

checkMethod · 0.65
gtMethod · 0.65

Tested by

no test coverage detected