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

x/valibot/src/schemas/index.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/src/schemas/index.ts";

Creates a array schema.

Parameters

item: TItem

The item schema.

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

A validation and transformation pipe.

Returns

A array schema.

Creates a array schema.

Parameters

item: TItem

The item schema.

optional
message: ErrorMessage

The error message.

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

A validation and transformation pipe.

Returns

A array schema.