import { tuple } from "https://deno.land/x/valibot@v0.19.0/src/schemas/tuple/index.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
error: ErrorMessageThe error message.
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
error: ErrorMessageThe error message.
optional
pipe: Pipe<TupleOutput<TTupleItems, TTupleRest>>A validation and transformation pipe.
Returns
A tuple schema.