Skip to content

Commit 99a21a8

Browse files
committed
🐛 Fix error callback type missing addons extensions
should fix #222
1 parent 78100d8 commit 99a21a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ export interface WretchError extends Error { status: number, response: WretchRes
754754
/**
755755
* Callback provided to catchers on error. Contains the original wretch instance used to perform the request.
756756
*/
757-
export type WretchErrorCallback<T, C, R> = (error: WretchError, originalRequest: Wretch<T, C, R>) => any
757+
export type WretchErrorCallback<T, C, R> = (error: WretchError, originalRequest: T & Wretch<T, C, R>) => any
758758
/**
759759
* Fetch Response object with additional properties.
760760
*/

0 commit comments

Comments
 (0)