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