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

x/valibot/src/index.ts>TupleOutput

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

Tuple with rest output inference type.

Type Parameters

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