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

Method negative

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

Source from the content-addressed store, hash-verified

1518 }
1519
1520 negative(message?: errorUtil.ErrMessage) {
1521 return this._addCheck({
1522 kind: "max",
1523 value: 0,
1524 inclusive: false,
1525 message: errorUtil.toString(message),
1526 });
1527 }
1528
1529 nonpositive(message?: errorUtil.ErrMessage) {
1530 return this._addCheck({

Callers

nothing calls this directly

Calls 2

_addCheckMethod · 0.95
toStringMethod · 0.80

Tested by

no test coverage detected