Skip to content

Commit

Permalink
🐛 Relax the typechecker when using resolve within defer
Browse files Browse the repository at this point in the history
Should solve #146
  • Loading branch information
elbywan committed Sep 28, 2022
1 parent 06f9b7a commit 9e052c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ts
Expand Up @@ -736,7 +736,7 @@ export type WretchResponse = Response & { [key: string]: any }
/**
* Callback provided to the defer function allowing to chain deferred actions that will be stored and applied just before the request is sent.
*/
export type WretchDeferredCallback<T, C, R> = (wretch: T & Wretch<T, C, R>, url: string, options: WretchOptions) => Wretch<T, C, R>
export type WretchDeferredCallback<T, C, R> = (wretch: T & Wretch<T, C, R>, url: string, options: WretchOptions) => Wretch<T, C, any>

/**
* Shape of a typical middleware.
Expand Down

0 comments on commit 9e052c8

Please sign in to comment.