import { minLength } from "https://deno.land/x/valibot@v1.0.0-beta.4/src/actions/index.ts";
Creates a min length validation action.
Type Parameters
TInput extends LengthInput
Parameters
requirement: TRequirement
The minimum length.
Returns
MinLengthAction<TInput, TRequirement, undefined>
A min length action.
Creates a min length validation action.
Type Parameters
TInput extends LengthInput
TMessage extends ErrorMessage<MinLengthIssue<TInput, TRequirement>> | undefined
Parameters
requirement: TRequirement
The minimum length.
message: TMessage
The error message.
Returns
A min length action.