import { tuple } from "https://deno.land/x/valibot@v0.28.1/src/schemas/tuple/index.ts";
Creates a tuple schema.
Type Parameters
TItems extends TupleItems
Parameters
items: TItems
The items schema.
optional
pipe: Pipe<TupleOutput<TItems, undefined>>A validation and transformation pipe.
Returns
A tuple schema.
Creates a tuple schema.
Type Parameters
TItems extends TupleItems
Parameters
items: TItems
The items schema.
optional
message: ErrorMessageThe error message.
optional
pipe: Pipe<TupleOutput<TItems, undefined>>A validation and transformation pipe.
Returns
A tuple schema.
Creates a tuple schema.
Type Parameters
TItems extends TupleItems
TRest extends BaseSchema | undefined
Returns
A tuple schema.
Creates a tuple schema.
Type Parameters
TItems extends TupleItems
TRest extends BaseSchema | undefined
Parameters
items: TItems
The items schema.
rest: TRest
The rest schema.
optional
message: ErrorMessageThe error message.
optional
pipe: Pipe<TupleOutput<TItems, TRest>>A validation and transformation pipe.
Returns
A tuple schema.