File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
import {
2
- AbortMultipartUploadCommandOutput ,
3
2
CompletedPart ,
4
3
CompleteMultipartUploadCommand ,
5
4
CompleteMultipartUploadCommandOutput ,
@@ -94,7 +93,7 @@ export class Upload extends EventEmitter {
94
93
this . abortController . abort ( ) ;
95
94
}
96
95
97
- public async done ( ) : Promise < CompleteMultipartUploadCommandOutput | AbortMultipartUploadCommandOutput > {
96
+ public async done ( ) : Promise < CompleteMultipartUploadCommandOutput > {
98
97
return await Promise . race ( [ this . __doMultipartUpload ( ) , this . __abortTimeout ( this . abortController . signal ) ] ) ;
99
98
}
100
99
@@ -360,7 +359,7 @@ export class Upload extends EventEmitter {
360
359
}
361
360
}
362
361
363
- private async __abortTimeout ( abortSignal : AbortSignal ) : Promise < AbortMultipartUploadCommandOutput > {
362
+ private async __abortTimeout ( abortSignal : AbortSignal ) : Promise < never > {
364
363
return new Promise ( ( resolve , reject ) => {
365
364
abortSignal . onabort = ( ) => {
366
365
const abortError = new Error ( "Upload aborted." ) ;
You can’t perform that action at this time.
0 commit comments