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://dotland.deno.dev/x/zod@v3.23.7/types.ts";

Parameters

optional
message: errorUtil.ErrMessage