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

Method minLength

packages/zod/src/v3/types.ts:1309–1317  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1307 }
1308
1309 get minLength() {
1310 let min: number | null = null;
1311 for (const ch of this._def.checks) {
1312 if (ch.kind === "min") {
1313 if (min === null || ch.value > min) min = ch.value;
1314 }
1315 }
1316 return min;
1317 }
1318
1319 get maxLength() {
1320 let max: number | null = null;

Callers 10

valibot-string.tsFile · 0.80
zod-mini-string.tsFile · 0.80
example-mini.tsFile · 0.80
convertBaseSchemaFunction · 0.80
minFunction · 0.80
nonemptyFunction · 0.80
codec.test.tsFile · 0.80
checks.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected