diff --git a/deno/lib/types.ts b/deno/lib/types.ts index bb75caa81..07136b8fc 100644 --- a/deno/lib/types.ts +++ b/deno/lib/types.ts @@ -634,8 +634,8 @@ export class ZodString extends ZodType { } /** - * Deprecated. - * Use z.string().min(1) instead. + * @deprecated Use z.string().min(1) instead. + * @see {@link ZodString.min} */ nonempty = (message?: errorUtil.ErrMessage) => this.min(1, errorUtil.errToObj(message)); diff --git a/src/types.ts b/src/types.ts index c5dc00989..6a0d76c41 100644 --- a/src/types.ts +++ b/src/types.ts @@ -634,8 +634,8 @@ export class ZodString extends ZodType { } /** - * Deprecated. - * Use z.string().min(1) instead. + * @deprecated Use z.string().min(1) instead. + * @see {@link ZodString.min} */ nonempty = (message?: errorUtil.ErrMessage) => this.min(1, errorUtil.errToObj(message));