import { tuple } from "https://deno.land/x/valibot@v0.8.0/src/index.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.