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.21.0/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.