import { length } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/src/actions/length/length.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.