Skip to content

Commit

Permalink
Merge pull request #1661 from langchain-ai/dqbd/sdk-js-fetch-types
Browse files Browse the repository at this point in the history
fix(js): don't be strict on JS types for custom fetch
  • Loading branch information
dqbd authored Sep 9, 2024
2 parents 1c9b1d2 + 58c34cf commit ba5cf0d
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 ba5cf0d

Please sign in to comment.