Skip to main content
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.4/types.ts";

Parameters

optional
message: errorUtil.ErrMessage