Skip to content

Commit

Permalink
fix(js): don't be strict on JS types for custom fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
dqbd committed Sep 9, 2024
1 parent 1c9b1d2 commit 58c34cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/sdk-js/src/utils/async_caller.mts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface AsyncCallerParams {
*
* By default we expect the `fetch` is available in the global scope.
*/
fetch?: typeof fetch;
fetch?: typeof fetch | ((...args: any[]) => any);
}

export interface AsyncCallerCallOptions {
Expand Down

0 comments on commit 58c34cf

Please sign in to comment.