Skip to main content
Module

x/valita/mod.ts>tuple

A typesafe validation & parsing library for TypeScript.
Go to Latest
function tuple
import { tuple } from "https://deno.land/x/valita@v0.3.4/mod.ts";

Create a validator for an array type [T1, T2, ..., Tn], where T1, T2, ..., Tn are the output types of the given subvalidators.

Type Parameters

T extends [] | [Type, ...Type[]]

Returns

ArrayType<T, undefined>