Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/valibot/mod.ts>MaxLengthAction

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
interface MaxLengthAction
import { type MaxLengthAction } from "https://deno.land/x/valibot@v0.35.0/mod.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.