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

x/valibot/src/index.ts>everyItem

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

Creates an every item validation action.

Type Parameters

TInput extends readonly unknown[]

Parameters

requirement: ArrayRequirement<TInput>

The validation function.

Returns

An every item action.

Creates an every item validation action.

Type Parameters

TInput extends readonly unknown[]
TMessage extends ErrorMessage<EveryItemIssue<TInput>> | undefined

Parameters

requirement: ArrayRequirement<TInput>

The validation function.

message: TMessage

The error message.

Returns

An every item action.