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

x/netzo/deps/zod/mod.ts>z.ZodString

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
class z.ZodString
extends ZodType<string, ZodStringDef>
import { z } from "https://deno.land/x/netzo@0.5.63/deps/zod/mod.ts";
const { ZodString } = z;

Properties

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

Methods

cuid(message?: errorUtil.ErrMessage)
cuid2(message?: errorUtil.ErrMessage)
datetime(options?: string | { message?: string | undefined; precision?: number | null; offset?: boolean; })
email(message?: errorUtil.ErrMessage)
emoji(message?: errorUtil.ErrMessage)
endsWith(value: string, message?: errorUtil.ErrMessage)
includes(value: string, options?: { message?: string; position?: number; })
ip(options?: string | { version?: "v4" | "v6"; message?: string; })
length(len: number, message?: errorUtil.ErrMessage)
max(maxLength: number, message?: errorUtil.ErrMessage)
min(minLength: number, message?: errorUtil.ErrMessage)
regex(regex: RegExp, message?: errorUtil.ErrMessage)
startsWith(value: string, message?: errorUtil.ErrMessage)
ulid(message?: errorUtil.ErrMessage)
url(message?: errorUtil.ErrMessage)
uuid(message?: errorUtil.ErrMessage)

Static Properties

create: (params?: RawCreateParams & { coerce?: true; }) => ZodString