MCPcopy
hub / github.com/di-sukharev/opencommit / isFinite

Method isFinite

out/cli.cjs:30586–30600  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) => {

Callers 15

createIntegerConversionFunction · 0.80
createLongLongConversionFunction · 0.80
_parseMethod · 0.80
parseURLFunction · 0.80
bodyLengthFunction · 0.80
constructorMethod · 0.80
processHeaderFunction · 0.80
constructorMethod · 0.80
dumpMethod · 0.80
onHeadersMethod · 0.80
PFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected