refactor: Specify type for active array in upload process

This commit is contained in:
2025-10-16 11:18:05 +02:00
parent f533d86896
commit 966450a2de

View File

@@ -154,7 +154,7 @@ export default function Home() {
};
const queue = [...chunks];
const active = [];
const active: Promise<void>[] = [];
while (queue.length > 0 || active.length > 0) {
while (active.length < PARALLEL_UPLOADS && queue.length > 0) {
const task = queue.shift()!;