Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/cav/test/test_deps.ts>zod.ZodString

A server framework for Deno
Go to Latest
class zod.ZodString
extends ZodType<string, ZodStringDef>
import { zod } from "https://deno.land/x/cav@0.0.24/test/test_deps.ts";
const { ZodString } = zod;

Properties

protected
_regex: (
regex: RegExp,
validation: StringValidation,
message?: errorUtil.ErrMessage,
) => unknown
readonly
isCUID
readonly
isEmail
readonly
isURL
readonly
isUUID
readonly
maxLength
readonly
minLength
deprecated
nonempty: (message?: errorUtil.ErrMessage) => unknown
trim: () => unknown

Methods

_addCheck(check: ZodStringCheck)
cuid(message?: errorUtil.ErrMessage)
email(message?: errorUtil.ErrMessage)
length(len: number, message?: errorUtil.ErrMessage)
max(maxLength: number, message?: errorUtil.ErrMessage)
min(minLength: number, message?: errorUtil.ErrMessage)
regex(regex: RegExp, message?: errorUtil.ErrMessage)
url(message?: errorUtil.ErrMessage)
uuid(message?: errorUtil.ErrMessage)

Static Properties

create: (params?: RawCreateParams) => ZodString