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