Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/src/actions/maxLength/index.ts>MaxLengthAction

The modular and type safe schema library for validating structural data 🤖
Latest
interface MaxLengthAction
import { type MaxLengthAction } from "https://deno.land/x/valibot@v1.0.0-beta.5/src/actions/maxLength/index.ts";

Max length action type.

Type Parameters

TInput extends LengthInput
TRequirement extends number
TMessage extends ErrorMessage<MaxLengthIssue<TInput, TRequirement>> | undefined

Properties

readonly
type: "max_length"

The action type.

readonly
reference: maxLength

The action reference.

readonly
expects: `<=${TRequirement}`

The expected property.

readonly
requirement: TRequirement

The maximum length.

readonly
message: TMessage

The error message.