import { tupleAsync } from "https://deno.land/x/valibot@v0.5.0/src/index.ts";
Creates an async tuple schema.
Type Parameters
TTupleItems extends TupleShapeAsync
optional
TTupleRest extends BaseSchema | BaseSchemaAsync | undefined = undefinedParameters
items: TTupleItems
The items 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
optional
TTupleRest extends BaseSchema | BaseSchemaAsync | undefined = undefinedParameters
items: TTupleItems
The items 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
optional
TTupleRest extends BaseSchema | BaseSchemaAsync | undefined = undefinedParameters
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
optional
TTupleRest extends BaseSchema | BaseSchemaAsync | undefined = undefinedParameters
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.