wretch
    Preparing search index...

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

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

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

    Type Parameters

    • T
    • C
    • R
    • E

    Type Declaration