Module

x/zod/mod.ts>z.ZodString#nonempty

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

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

import { z } from "https://dotland.deno.dev/x/zod@v3.23.4/mod.ts";
const { ZodString } = z;

Parameters

optional
message: errorUtil.ErrMessage