Skip to main content

Function: _length()

_length(length, params?): $ZodCheckLengthEquals<HasLength>

Defined in: packages/agentos/node_modules/zod/v4/core/api.d.cts:196

Parameters

length

number

params?

string |

{ abort?: boolean; error?: string | $ZodErrorMap<NonNullable<$ZodIssueTooSmall<HasLength> | $ZodIssueTooBig<HasLength>>>; message?: string; }

abort?

boolean

If true, no later checks will be executed if this check fails. Default false.

error?

string | $ZodErrorMap<NonNullable<$ZodIssueTooSmall<HasLength> | $ZodIssueTooBig<HasLength>>>

message?

string

Deprecated

This parameter is deprecated. Use error instead.

Returns

$ZodCheckLengthEquals<HasLength>