wretch
    Preparing search index...

    Type Alias WretchErrorCallback<T, C, R, E, CatcherResult, Result>

    WretchErrorCallback: (
        error: E extends undefined ? WretchError : E,
        originalRequest: T & Wretch<T, C, R, E, CatcherResult>,
    ) => Result

    Callback provided to catchers on error. Contains the original wretch instance used to perform the request.

    Type Parameters

    • T
    • C
    • R
    • E
    • CatcherResult = never
    • Result = any

    Type Declaration