import { tupleAsync } from "https://deno.land/x/valibot@v0.19.0/src/schemas/tuple/tupleAsync.ts";
Creates an async tuple schema.
Type Parameters
TTupleItems extends TupleShapeAsync
Parameters
items: TTupleItems
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
items: TTupleItems
The items schema.
optional
error: ErrorMessageThe 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
items: TTupleItems
The items schema.
rest: TTupleRest
The rest schema.
optional
pipe: PipeAsync<TupleOutput<TTupleItems, TTupleRest>>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
items: TTupleItems
The items schema.
rest: TTupleRest
The rest schema.
optional
error: ErrorMessageThe error message.
optional
pipe: PipeAsync<TupleOutput<TTupleItems, TTupleRest>>A validation and transformation pipe.
Returns
An async tuple schema.