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

x/valibot/src/schemas/tuple/index.ts>TupleInput

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
type alias TupleInput
Re-export
import { type TupleInput } from "https://deno.land/x/valibot@v0.28.1/src/schemas/tuple/index.ts";

Tuple input inference type.

Type Parameters

TItems extends TupleItems | TupleItemsAsync
TRest extends BaseSchema | BaseSchemaAsync | undefined
definition: TRest extends undefined | NeverSchema | NeverSchemaAsync ? [TKey in keyof TItems]: Input<TItems[TKey]> : TRest extends BaseSchema | BaseSchemaAsync ? [...[TKey in keyof TItems]: Input<TItems[TKey]>, ...Input<TRest>[]] : never