Skip to main content
Module

x/valibot/mod.ts>tupleAsync

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

Creates an async tuple schema.

Parameters

items: TItems

The items schema.

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

A validation and transformation pipe.

Returns

An async tuple schema.

Creates an async tuple schema.

Parameters

items: TItems

The items schema.

optional
message: ErrorMessage

The error message.

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

A validation and transformation pipe.

Returns

An async tuple schema.

Creates an async tuple schema.

Type Parameters

TItems extends TupleItemsAsync
TRest extends BaseSchema | BaseSchemaAsync | undefined

Parameters

items: TItems

The items schema.

rest: TRest

The rest schema.

A validation and transformation pipe.

Returns

An async tuple schema.

Creates an async tuple schema.

Type Parameters

TItems extends TupleItemsAsync
TRest extends BaseSchema | BaseSchemaAsync | undefined

Parameters

items: TItems

The items schema.

rest: TRest

The rest schema.

optional
message: ErrorMessage

The error message.

A validation and transformation pipe.

Returns

An async tuple schema.