From 58c34cf40ce7106b24bb5652d72374a63906f627 Mon Sep 17 00:00:00 2001 From: Tat Dat Duong Date: Mon, 9 Sep 2024 17:48:55 +0200 Subject: [PATCH] fix(js): don't be strict on JS types for custom fetch --- libs/sdk-js/src/utils/async_caller.mts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/sdk-js/src/utils/async_caller.mts b/libs/sdk-js/src/utils/async_caller.mts index 3658b85a1..d58823ba4 100644 --- a/libs/sdk-js/src/utils/async_caller.mts +++ b/libs/sdk-js/src/utils/async_caller.mts @@ -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 {