import { length } from "https://deno.land/x/valibot@v0.35.0/src/index.ts";
Creates a length validation action.
Type Parameters
TInput extends LengthInput
Parameters
requirement: TRequirement
The required length.
Returns
LengthAction<TInput, TRequirement, undefined>
A length action.
Creates a length validation action.
Type Parameters
TInput extends LengthInput
TMessage extends ErrorMessage<LengthIssue<TInput, TRequirement>> | undefined
Parameters
requirement: TRequirement
The required length.
message: TMessage
The error message.
Returns
A length action.