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

x/valibot/src/schemas/looseTuple/looseTuple.ts>LooseTupleSchema

The modular and type safe schema library for validating structural data 🤖
Go to Latest
interface LooseTupleSchema
implements BaseSchema<[...InferTupleInput<TItems>, ...unknown[]], [...InferTupleOutput<TItems>, ...unknown[]], LooseTupleIssue | InferTupleIssue<TItems>>
import { type LooseTupleSchema } from "https://deno.land/x/valibot@v0.1.0-to-json-schema/src/schemas/looseTuple/looseTuple.ts";

Loose tuple schema type.

Type Parameters

TItems extends TupleItems
TMessage extends ErrorMessage<LooseTupleIssue> | undefined

Properties

readonly
type: "loose_tuple"

The schema type.

readonly
reference: looseTuple

The schema reference.

readonly
expects: "Array"

The expected property.

readonly
items: TItems

The items schema.

readonly
message: TMessage

The error message.