mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-07 22:44:16 +00: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 },
|
||||
): Promise<R[]> {
|
||||
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 completed = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user