Type alias WretchErrorCallback<T, C, R>

WretchErrorCallback<T, C, R>: ((error: WretchError, originalRequest: Wretch<T, C, R>) => any)

Type Parameters

  • T

  • C

  • R

Type declaration

    • (error: WretchError, originalRequest: Wretch<T, C, R>): any
    • Callback provided to catchers on error. Contains the original wretch instance used to perform the request.

      Parameters

      Returns any

Generated using TypeDoc