Type Parameters

Hierarchy (View Summary)

Constructors

Properties

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

Alias of safeParseAsync

create: <T_1 extends ZodType<any, any, any, T_1>>(
    type: T_1,
    params: {
        description?: string;
        errorMap?: ZodErrorMap;
        invalid_type_error?: string;
        message?: string;
        required_error?: string;
    } & { catch: T_1["_output"]
    | () => T_1["_output"] },
) => ZodCatch<T_1>

Accessors

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

Methods

  • Parameters

    Returns string

  • Type Parameters

    • B extends string | number | symbol

    Parameters

    • Optionalbrand: B

    Returns ZodBranded<ZodCatch<T>, B>

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean

  • Parameters

    Returns T["_output"]

  • Parameters

    Returns Promise<T["_output"]>

  • Returns T