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

x/valibot/src/schemas/index.ts>tupleAsync

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

Creates an async tuple schema.

Type Parameters

TTupleItems extends TupleShapeAsync

Parameters

The items schema.

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

A validation and transformation pipe.

Returns

An async tuple schema.

Creates an async tuple schema.

Type Parameters

TTupleItems extends TupleShapeAsync

Parameters

The items schema.

optional
error: ErrorMessage

The error message.

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

A validation and transformation pipe.

Returns

An async tuple schema.

Creates an async tuple schema.

Type Parameters

TTupleItems extends TupleShapeAsync
TTupleRest extends BaseSchema | BaseSchemaAsync | undefined

Parameters

The items schema.

The rest schema.

A validation and transformation pipe.

Creates an async tuple schema.

Type Parameters

TTupleItems extends TupleShapeAsync
TTupleRest extends BaseSchema | BaseSchemaAsync | undefined

Parameters

The items schema.

The rest schema.

optional
error: ErrorMessage

The error message.

A validation and transformation pipe.