diff --git a/src/types.ts b/src/types.ts index e69d2de..abf933c 100644 --- a/src/types.ts +++ b/src/types.ts @@ -754,7 +754,7 @@ export interface WretchError extends Error { status: number, response: WretchRes /** * Callback provided to catchers on error. Contains the original wretch instance used to perform the request. */ -export type WretchErrorCallback = (error: WretchError, originalRequest: Wretch) => any +export type WretchErrorCallback = (error: WretchError, originalRequest: T & Wretch) => any /** * Fetch Response object with additional properties. */