import { minLength } from "https://deno.land/x/valibot@v0.1.0-to-json-schema/src/actions/minLength/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.