chore: Fix TypeScript errors 5/n.

This commit is contained in:
cpojer
2026-01-31 16:49:45 +09:00
parent 9e908ad6be
commit c4feb7a457

View File

@@ -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;