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

x/valibot/src/schemas/array/array.ts>array

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

Creates a array schema.

Type Parameters

TArrayItem extends BaseSchema

Parameters

The item schema.

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

A validation and transformation pipe.

Creates a array schema.

Type Parameters

TArrayItem extends BaseSchema

Parameters

The item schema.

optional
error: ErrorMessage

The error message.

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

A validation and transformation pipe.