Skip to main content
Module

x/valibot/mod.ts>tuple

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

Creates a tuple schema.

Type Parameters

TTupleItems extends TupleShape

Parameters

The items schema.

optional
pipe: Pipe<TupleOutput<TTupleItems, undefined>>

A validation and transformation pipe.

Creates a tuple schema.

Type Parameters

TTupleItems extends TupleShape

Parameters

The items schema.

optional
error: string

The error message.

optional
pipe: Pipe<TupleOutput<TTupleItems, undefined>>

A validation and transformation pipe.

Creates a tuple schema.

Type Parameters

TTupleItems extends TupleShape
TTupleRest extends BaseSchema

Parameters

The items schema.

The rest schema.

A validation and transformation pipe.

Creates a tuple schema.

Type Parameters

TTupleItems extends TupleShape
TTupleRest extends BaseSchema

Parameters

The items schema.

The rest schema.

optional
error: string

The error message.

A validation and transformation pipe.