Skip to main content
Module

x/zod/mod.ts>ZodArray

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
class ZodArray
extends ZodType<T["_output"][], ZodArrayDef<T>, T["_input"][]>
import { ZodArray } from "https://deno.land/x/zod@v3.2/mod.ts";

Properties

readonly
element
length: (len: number, message?: errorUtil.ErrMessage) => this
max: (maxLength: number, message?: errorUtil.ErrMessage) => this
min: (minLength: number, message?: errorUtil.ErrMessage) => this
nonempty: () => ZodNonEmptyArray<T>

Static Properties

create: <T extends ZodTypeAny>(schema: T) => ZodArray<T>