import { tuple } from "https://deno.land/x/valibot@v0.9.0/src/schemas/tuple/tuple.ts";
Creates a tuple schema.
Type Parameters
TTupleItems extends TupleShape
optional
TTupleRest extends BaseSchema | undefined = undefinedParameters
items: TTupleItems
The items 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
optional
TTupleRest extends BaseSchema | undefined = undefinedParameters
items: TTupleItems
The items 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
optional
TTupleRest extends BaseSchema | undefined = undefinedParameters
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
optional
TTupleRest extends BaseSchema | undefined = undefinedParameters
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.