Type Alias WretchErrorCallback<T, C, R>

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

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

Type Parameters

  • T
  • C
  • R