Skip to content

Commit

Permalink
🐛 Fix error callback type missing addons extensions
Browse files Browse the repository at this point in the history
should fix #222
  • Loading branch information
elbywan committed Mar 7, 2024
1 parent 78100d8 commit 99a21a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T, C, R> = (error: WretchError, originalRequest: Wretch<T, C, R>) => any
export type WretchErrorCallback<T, C, R> = (error: WretchError, originalRequest: T & Wretch<T, C, R>) => any
/**
* Fetch Response object with additional properties.
*/
Expand Down

0 comments on commit 99a21a8

Please sign in to comment.