x/zod/external.ts

TypeScript-first schema validation with static type inference
Very Popular
Go to Latest
class ZodTuple
extends ZodType<OutputTypeOfTupleWithRest<T, Rest>, ZodTupleDef<T, Rest>, InputTypeOfTupleWithRest<T, Rest>>
import { ZodTuple } from "https://deno.land/x/zod@v3.17.3/external.ts?s=ZodTuple";

Type Parameters

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

Properties

readonly
items
[src]

Methods

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

Static Properties

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