()
| 30584 | return !!this._def.checks.find((ch) => ch.kind === "int" || ch.kind === "multipleOf" && util_1.util.isInteger(ch.value)); |
| 30585 | } |
| 30586 | get isFinite() { |
| 30587 | let max = null, min = null; |
| 30588 | for (const ch of this._def.checks) { |
| 30589 | if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") { |
| 30590 | return true; |
| 30591 | } else if (ch.kind === "min") { |
| 30592 | if (min === null || ch.value > min) |
| 30593 | min = ch.value; |
| 30594 | } else if (ch.kind === "max") { |
| 30595 | if (max === null || ch.value < max) |
| 30596 | max = ch.value; |
| 30597 | } |
| 30598 | } |
| 30599 | return Number.isFinite(min) && Number.isFinite(max); |
| 30600 | } |
| 30601 | }; |
| 30602 | exports2.ZodNumber = ZodNumber; |
| 30603 | ZodNumber.create = (params) => { |
no outgoing calls
no test coverage detected