Hierarchy (view full)

Constructors

Properties

_input: string
_output: string
_type: string
spa: ((data, params?) => Promise<SafeParseReturnType<string, string>>)

Alias of safeParseAsync

Type declaration

create: ((params?) => ZodString)

Type declaration

    • (params?): ZodString
    • Parameters

      • Optional params: {
            description?: string;
            errorMap?: ZodErrorMap;
            invalid_type_error?: string;
            required_error?: string;
        } & {
            coerce?: true;
        }

      Returns 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

    Returns string

  • Parameters

    Returns ZodString

  • Parameters

    Returns ZodString

  • Parameters

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

    Returns ZodString

  • Parameters

    • description: string

    Returns this

  • Parameters

    Returns ZodString

  • Parameters

    Returns ZodString

  • Parameters

    Returns ZodString

  • Parameters

    • value: string
    • Optional options: {
          message?: string;
          position?: number;
      }
      • Optional message?: string
      • Optional position?: number

    Returns ZodString

  • Parameters

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

    Returns ZodString

  • Returns boolean

  • Returns boolean

  • Parameters

    Returns ZodString

  • Parameters

    Returns ZodString

  • Parameters

    Returns ZodString

  • Parameters

    Returns ZodString

    Deprecated

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

    See

    ZodString.min

  • Parameters

    Returns string

  • Parameters

    Returns Promise<string>

  • Parameters

    Returns ZodString

  • Parameters

    Returns ZodString

  • Returns ZodString

  • Returns ZodString

  • Returns ZodString

  • Parameters

    Returns ZodString

  • Parameters

    Returns ZodString

  • Parameters

    Returns ZodString

Generated using TypeDoc