Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 committed Aug 1, 2024
1 parent 9a4fc4b commit 52e38d8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions langchain-core/src/runnables/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export function mergeConfigs<CallOptions extends RunnableConfig>(
copy.signal = options.signal;
} else if (options.signal !== undefined) {
if ("any" in AbortSignal) {
copy.signal = AbortSignal.any([copy.signal, options.signal]);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
copy.signal = (AbortSignal as any).any([copy.signal, options.signal]);
} else {
copy.signal = options.signal;
}
Expand Down Expand Up @@ -178,7 +179,8 @@ export function ensureConfig<CallOptions extends RunnableConfig>(
const timeoutSignal = AbortSignal.timeout(empty.timeout);
if (empty.signal !== undefined) {
if ("any" in AbortSignal) {
empty.signal = AbortSignal.any([empty.signal, timeoutSignal]);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
empty.signal = (AbortSignal as any).any([empty.signal, timeoutSignal]);
}
} else {
empty.signal = timeoutSignal;
Expand Down

0 comments on commit 52e38d8

Please sign in to comment.