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

x/valibot/src/index.ts>ArrayRequirement

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
type alias ArrayRequirement
Re-export
import { type ArrayRequirement } from "https://deno.land/x/valibot@v0.35.0/src/index.ts";

Array requirement type.

Type Parameters

TInput extends readonly unknown[]
definition: (
item: TInput[number],
index: number,
array: TInput,
) => boolean