Method
setLimit
(kind: "min" | "max", value: number, inclusive: boolean, message?: string)
Source from the content-addressed store, hash-verified
| 1480 | } |
| 1481 | |
| 1482 | protected setLimit(kind: "min" | "max", value: number, inclusive: boolean, message?: string) { |
| 1483 | return new ZodNumber({ |
| 1484 | ...this._def, |
| 1485 | checks: [ |
| 1486 | ...this._def.checks, |
| 1487 | { |
| 1488 | kind, |
| 1489 | value, |
| 1490 | inclusive, |
| 1491 | message: errorUtil.toString(message), |
| 1492 | }, |
| 1493 | ], |
| 1494 | }); |
| 1495 | } |
| 1496 | |
| 1497 | _addCheck(check: ZodNumberCheck) { |
| 1498 | return new ZodNumber({ |
Tested by
no test coverage detected