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

x/zod/types.ts>ZodString#nonempty

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
method ZodString.prototype.nonempty
Deprecated
Deprecated

Use z.string().min(1) instead.

import { ZodString } from "https://deno.land/x/zod@v3.23.0/types.ts";

Parameters

optional
message: errorUtil.ErrMessage