Module

x/zod/index.ts>ZodTuple

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
import { ZodTuple } from "https://dotland.deno.dev/x/zod@v3.20/index.ts";

Type Parameters

optional
T extends [ZodTypeAny, ...ZodTypeAny[]] | [] = [ZodTypeAny, ...ZodTypeAny[]]
optional
Rest extends ZodTypeAny | null = null

Properties

readonly
items

Methods

_parse(input: ParseInput): ParseReturnType<this["_output"]>
rest<Rest extends ZodTypeAny>(rest: Rest): ZodTuple<T, Rest>

Static Properties

create: <T extends [ZodTypeAny, ...ZodTypeAny[]] | []>(schemas: T, params?: RawCreateParams) => ZodTuple<T, null>