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:
parent
465eca8bab
commit
40acc3ff84
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue