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

Method nonpositive

packages/zod/src/v3/types.ts:1529–1536  ·  view source on GitHub ↗
(message?: errorUtil.ErrMessage)

Source from the content-addressed store, hash-verified

1527 }
1528
1529 nonpositive(message?: errorUtil.ErrMessage) {
1530 return this._addCheck({
1531 kind: "max",
1532 value: 0,
1533 inclusive: true,
1534 message: errorUtil.toString(message),
1535 });
1536 }
1537
1538 nonnegative(message?: errorUtil.ErrMessage) {
1539 return this._addCheck({

Callers

nothing calls this directly

Calls 2

_addCheckMethod · 0.95
toStringMethod · 0.80

Tested by

no test coverage detected