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

Method length

packages/zod/src/v4/classic/schemas.ts:1323–1323  ·  view source on GitHub ↗
(len: number, params?: string | core.$ZodCheckLengthEqualsParams)

Source from the content-addressed store, hash-verified

1321 nonempty(params?: string | core.$ZodCheckMinLengthParams): this;
1322 max(maxLength: number, params?: string | core.$ZodCheckMaxLengthParams): this;
1323 length(len: number, params?: string | core.$ZodCheckLengthEqualsParams): this;
1324
1325 unwrap(): T;
1326 "~standard": ZodStandardSchemaWithJSON<this>;

Callers 12

string.test.tsFile · 0.65
array.test.tsFile · 0.65
lengthFunction · 0.65
string.test.tsFile · 0.65
array.test.tsFile · 0.65
checks.test.tsFile · 0.65
computed.test.tsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected