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

Method positive

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

Source from the content-addressed store, hash-verified

1509 }
1510
1511 positive(message?: errorUtil.ErrMessage) {
1512 return this._addCheck({
1513 kind: "min",
1514 value: 0,
1515 inclusive: false,
1516 message: errorUtil.toString(message),
1517 });
1518 }
1519
1520 negative(message?: errorUtil.ErrMessage) {
1521 return this._addCheck({

Callers

nothing calls this directly

Calls 2

_addCheckMethod · 0.95
toStringMethod · 0.80

Tested by

no test coverage detected