fix: correct TypeScript type for retry upload promise

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
michael 2025-12-22 20:05:35 -06:00
parent 465eca8bab
commit 40acc3ff84

View file

@ -211,7 +211,8 @@ export function useMultiUpload(options: UseMultiUploadOptions = {}): UseMultiUpl
while (queue.length > 0 || active.length > 0) {
while (active.length < maxConcurrent && queue.length > 0) {
const item = queue.shift()!;
const promise = uploadSingleFile(item, settings)
const promise: Promise<void> = uploadSingleFile(item, settings)
.then(() => {})
.finally(() => {
const index = active.indexOf(promise);
if (index > -1) active.splice(index, 1);