Type Parameters

Hierarchy (view full)

Constructors

Properties

_def: ZodCatchDef<T>
_input: unknown
_output: T["_output"]
_type: T["_output"]
spa: ((data, params?) => Promise<SafeParseReturnType<unknown, T["_output"]>>)

Alias of safeParseAsync

Type declaration

create: (<T_1>(type, params) => ZodCatch<T_1>)

Type declaration

    • <T_1>(type, params): ZodCatch<T_1>
    • Type Parameters

      Parameters

      • type: T_1
      • params: {
            description?: string;
            errorMap?: ZodErrorMap;
            invalid_type_error?: string;
            required_error?: string;
        } & {
            catch: T_1["_output"] | (() => T_1["_output"]);
        }

      Returns ZodCatch<T_1>

Accessors

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

Methods

  • Parameters

    Returns string

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean

  • Parameters

    Returns T["_output"]

  • Parameters

    Returns Promise<T["_output"]>

  • Returns T

Generated using TypeDoc