Skip to main content
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.13.1/mod.ts";

Creates a array schema.

Type Parameters

TArrayItem extends BaseSchema

Parameters

The item schema.

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

A validation and transformation pipe.

Returns

ArraySchema<TArrayItem>

A array schema.

Creates a array schema.

Type Parameters

TArrayItem extends BaseSchema

Parameters

The item schema.

optional
error: string

The error message.

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

A validation and transformation pipe.

Returns

ArraySchema<TArrayItem>

A array schema.