Merge pull request #1661 from langchain-ai/dqbd/sdk-js-fetch-types

fix(js): don't be strict on JS types for custom fetch
This commit is contained in:
David Duong
2024-09-09 18:00:34 +02:00
committed by GitHub
+1 -1
View File
@@ -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 {