class zod.ZodArray
extends ZodType<arrayOutputType<T, Cardinality>, ZodArrayDef<T>, Cardinality extends "atleastone" ? [T["_input"], ...T["_input"][]] : T["_input"][]>
import { zod } from "https://deno.land/x/cav@0.0.24/test/test_deps.ts";
const { ZodArray } = zod;
Type Parameters
T extends ZodTypeAny
optional
Cardinality extends ArrayCardinality = "many"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
Static Properties
create: <T extends ZodTypeAny>(schema: T, params?: RawCreateParams) => ZodArray<T>