Module

x/zod/index.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.7/index.ts";
const { ZodString } = z;

Parameters

optional
message: errorUtil.ErrMessage