Skip to main content
Module

x/valibot/mod.ts>LengthValidation

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
interface LengthValidation
implements BaseValidation<TInput>
import { type LengthValidation } from "https://deno.land/x/valibot@v0.30.0/mod.ts";

Length validation type.

Type Parameters

TInput extends string | any[]
TRequirement extends number

Properties

type: "length"

The validation type.

requirement: TRequirement

The length.