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

x/valibot/mod.ts>array

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

Creates a array schema.

Type Parameters

TItem extends BaseSchema

Parameters

item: TItem

The item schema.

optional
pipe: Pipe<Output<TItem>[]>

A validation and transformation pipe.

Returns

ArraySchema<TItem>

A array schema.

Creates a array schema.

Type Parameters

TItem extends BaseSchema

Parameters

item: TItem

The item schema.

optional
message: ErrorMessage

The error message.

optional
pipe: Pipe<Output<TItem>[]>

A validation and transformation pipe.

Returns

ArraySchema<TItem>

A array schema.