Type Parameters

Hierarchy

Constructors

Properties

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

Type declaration

create: (<T_1>(type: T_1, params: {
    description?: string;
    errorMap?: ZodErrorMap;
    invalid_type_error?: string;
    required_error?: string;
} & {
    default: T_1["_input"] | (() => T_1["_input"]);
}) => ZodCatch<T_1>)

Type declaration

    • <T_1>(type: T_1, params: {
          description?: string;
          errorMap?: ZodErrorMap;
          invalid_type_error?: string;
          required_error?: string;
      } & {
          default: T_1["_input"] | (() => T_1["_input"]);
      }): ZodCatch<T_1>
    • Type Parameters

      • T_1 extends ZodType<any, any, any, T_1>

      Parameters

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

      Returns ZodCatch<T_1>

Accessors

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

Methods

  • Parameters

    • def: undefined | T["_input"]

    Returns ZodCatch<ZodCatch<T>>

  • Parameters

    • def: (() => undefined | T["_input"])
        • (): undefined | T["_input"]
        • Returns undefined | T["_input"]

    Returns ZodCatch<ZodCatch<T>>

  • Parameters

    • description: string

    Returns ZodCatch<T>

  • Returns boolean

  • Returns boolean

  • Returns T

Generated using TypeDoc