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

x/zod/types.ts>ZodArray#nonempty

TypeScript-first schema validation with static type inference
Very Popular
Go to Latest
method ZodArray.prototype.nonempty
import { ZodArray } from "https://deno.land/x/zod@v3.23.3/types.ts";

Parameters

optional
message: errorUtil.ErrMessage

Returns

ZodArray<T, "atleastone">