x/zod/types.ts

TypeScript-first schema validation with static type inference
Very Popular
Go to Latest
class ZodString
extends ZodType<string, ZodStringDef>
import { ZodString } from "https://deno.land/x/zod@v3.17.3/types.ts?s=ZodString";

Properties

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

Methods

_addCheck(check: ZodStringCheck)[src]
_parse(input: ParseInput): ParseReturnType<string>[src]
cuid(message?: errorUtil.ErrMessage)[src]
email(message?: errorUtil.ErrMessage)[src]
length(len: number, message?: errorUtil.ErrMessage)[src]
max(maxLength: number, message?: errorUtil.ErrMessage)[src]
min(minLength: number, message?: errorUtil.ErrMessage)[src]
regex(regex: RegExp, message?: errorUtil.ErrMessage)[src]
url(message?: errorUtil.ErrMessage)[src]
uuid(message?: errorUtil.ErrMessage)[src]

Static Properties

create: (params?: RawCreateParams) => ZodString[src]