Skip to main content
Module

x/zod/mod.ts>ZodNonEmptyArray

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

Properties

length: (len: number, message?: errorUtil.ErrMessage) => unknown
max: (maxLength: number, message?: errorUtil.ErrMessage) => unknown
min: (minLength: number, message?: errorUtil.ErrMessage) => unknown

Static Properties

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