Hierarchy (View Summary)

Constructors

Properties

_input: string
_output: string
_type: string
spa: (
    data: unknown,
    params?: Partial<Zod.z.ParseParams>,
) => Promise<Zod.z.SafeParseReturnType<string, string>>

Alias of safeParseAsync

create: (
    params?: {
        description?: string;
        errorMap?: Zod.z.ZodErrorMap;
        invalid_type_error?: string;
        required_error?: string;
    } & { coerce?: true },
) => Zod.z.ZodString

Accessors

  • get description(): undefined | string
  • Returns undefined | string

  • get isCUID(): boolean
  • Returns boolean

  • get isCUID2(): boolean
  • Returns boolean

  • get isDatetime(): boolean
  • Returns boolean

  • get isEmail(): boolean
  • Returns boolean

  • get isEmoji(): boolean
  • Returns boolean

  • get isIP(): boolean
  • Returns boolean

  • get isULID(): boolean
  • Returns boolean

  • get isURL(): boolean
  • Returns boolean

  • get isUUID(): boolean
  • Returns boolean

  • get maxLength(): null | number
  • Returns null | number

  • get minLength(): null | number
  • Returns null | number

Methods

  • Parameters

    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodString

  • Parameters

    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodString

  • Parameters

    • Optionaloptions: string | { message?: string; offset?: boolean; precision?: null | number }

    Returns Zod.z.ZodString

  • Parameters

    • description: string

    Returns this

  • Parameters

    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodString

  • Parameters

    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodString

  • Parameters

    • value: string
    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodString

  • Parameters

    • value: string
    • Optionaloptions: { message?: string; position?: number }

    Returns Zod.z.ZodString

  • Parameters

    • Optionaloptions: string | { message?: string; version?: "v4" | "v6" }

    Returns Zod.z.ZodString

  • Returns boolean

  • Returns boolean

  • Parameters

    • len: number
    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodString

  • Parameters

    • maxLength: number
    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodString

  • Parameters

    • minLength: number
    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodString

  • Parameters

    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodString

    Use z.string().min(1) instead.

  • Parameters

    Returns string

  • Parameters

    Returns Promise<string>

  • Parameters

    • regex: RegExp
    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodString

  • Parameters

    • value: string
    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodString

  • Parameters

    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodString

  • Parameters

    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodString

  • Parameters

    • Optionalmessage: ErrMessage

    Returns Zod.z.ZodString