mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-29 07:01:40 +03:00
chore: Fix TypeScript errors 5/n.
This commit is contained in:
@@ -361,7 +361,7 @@ async function mapWithConcurrency<T, R>(
|
|||||||
opts?: { onProgress?: (completed: number, total: number) => void },
|
opts?: { onProgress?: (completed: number, total: number) => void },
|
||||||
): Promise<R[]> {
|
): Promise<R[]> {
|
||||||
const limit = Math.max(1, Math.floor(concurrency));
|
const limit = Math.max(1, Math.floor(concurrency));
|
||||||
const results = Array.from({ length: items.length });
|
const results: R[] = Array.from({ length: items.length });
|
||||||
let nextIndex = 0;
|
let nextIndex = 0;
|
||||||
let completed = 0;
|
let completed = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user