Skip to content

Commit 90afe93

Browse files
ashburnhamnfcampos
andauthored
Update queue type to avoid build error (#673)
* Update queue type to avoid build error Existing code gives this error node_modules/langchain/dist/util/async_caller.d.ts:30:22 - error TS2702: 'PQueueMod' only refers to a type, but is being used as a namespace here. 30 protected queue: PQueueMod.default; This PR fixes it.. * Update langchain/src/util/async_caller.ts --------- Co-authored-by: Nuno Campos <[email protected]>
1 parent e380c24 commit 90afe93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

langchain/src/util/async_caller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class AsyncCaller {
3232

3333
protected maxRetries: AsyncCallerParams["maxRetries"];
3434

35-
protected queue: PQueueMod.default;
35+
private queue: typeof import("p-queue")["default"]["prototype"];
3636

3737
constructor(params: AsyncCallerParams) {
3838
this.maxConcurrency = params.maxConcurrency ?? Infinity;

0 commit comments

Comments
 (0)