chore: Fix TypeScript errors 5/n.
This commit is contained in:
parent
9e908ad6be
commit
c4feb7a457
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue