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

x/netzo/deps/zod/mod.ts>ZodArray

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
class ZodArray
extends ZodType<arrayOutputType<T, Cardinality>, ZodArrayDef<T>, Cardinality extends "atleastone" ? [T["_input"], ...T["_input"][]] : T["_input"][]>
import { ZodArray } from "https://deno.land/x/netzo@0.4.72/deps/zod/mod.ts";

Type Parameters

T extends ZodTypeAny
optional
Cardinality extends ArrayCardinality = "many"

Properties

readonly
element

Methods

_parse(input: ParseInput): ParseReturnType<this["_output"]>
length(len: number, message?: errorUtil.ErrMessage): this
max(maxLength: number, message?: errorUtil.ErrMessage): this
min(minLength: number, message?: errorUtil.ErrMessage): this
nonempty(message?: errorUtil.ErrMessage): ZodArray<T, "atleastone">

Static Properties

create: <T extends ZodTypeAny>(schema: T, params?: RawCreateParams) => ZodArray<T>