Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/mod.ts>TupleSchema

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
interface TupleSchema
Re-export
import { type TupleSchema } from "https://deno.land/x/valibot@v0.30.0/mod.ts";

Tuple schema type.

Type Parameters

TItems extends TupleItems
optional
TRest extends BaseSchema | undefined = undefined
optional
TOutput = TupleOutput<TItems, TRest>

Properties

type: "tuple"

The schema type.

items: TItems

The tuple items schema.

rest: TRest

The tuple rest schema.

message: ErrorMessage | undefined

The error message.

pipe: Pipe<TupleOutput<TItems, TRest>> | undefined

The validation and transformation pipeline.