import { tuple } from "https://deno.land/x/valibot@v0.13.0/src/schemas/tuple/tuple.ts";
Creates a tuple schema.
Type Parameters
TTupleItems extends TupleShape
Parameters
items: TTupleItems
The items schema.
optional
pipe: Pipe<TupleOutput<TTupleItems, undefined>>A validation and transformation pipe.
Returns
A tuple schema.
Creates a tuple schema.
Type Parameters
TTupleItems extends TupleShape
Parameters
items: TTupleItems
The items schema.
optional
pipe: Pipe<TupleOutput<TTupleItems, undefined>>A validation and transformation pipe.
Returns
A tuple schema.
Creates a tuple schema.
Type Parameters
TTupleItems extends TupleShape
TTupleRest extends BaseSchema
Parameters
items: TTupleItems
The items schema.
rest: TTupleRest
The rest schema.
optional
pipe: Pipe<TupleOutput<TTupleItems, TTupleRest>>A validation and transformation pipe.
Returns
A tuple schema.
Creates a tuple schema.
Type Parameters
TTupleItems extends TupleShape
TTupleRest extends BaseSchema
Parameters
items: TTupleItems
The items schema.
rest: TTupleRest
The rest schema.
optional
pipe: Pipe<TupleOutput<TTupleItems, TTupleRest>>A validation and transformation pipe.
Returns
A tuple schema.