@@ -11,15 +11,15 @@ import {
11
11
Tag ,
12
12
UploadPartCommand ,
13
13
} from "@aws-sdk/client-s3" ;
14
- import { AbortController , AbortSignal } from "@smithy/abort-controller" ;
14
+ import { AbortController } from "@smithy/abort-controller" ;
15
15
import {
16
16
EndpointParameterInstructionsSupplier ,
17
17
getEndpointFromInstructions ,
18
18
toEndpointV1 ,
19
19
} from "@smithy/middleware-endpoint" ;
20
20
import { HttpRequest } from "@smithy/protocol-http" ;
21
21
import { extendedEncodeURIComponent } from "@smithy/smithy-client" ;
22
- import { Endpoint } from "@smithy/types" ;
22
+ import type { AbortController as IAbortController , AbortSignal as IAbortSignal , Endpoint } from "@smithy/types" ;
23
23
import { EventEmitter } from "events" ;
24
24
25
25
import { byteLength } from "./bytelength" ;
@@ -54,7 +54,7 @@ export class Upload extends EventEmitter {
54
54
private bytesUploadedSoFar : number ;
55
55
56
56
// used in the upload.
57
- private abortController : AbortController ;
57
+ private abortController : IAbortController ;
58
58
private concurrentUploaders : Promise < void > [ ] = [ ] ;
59
59
private createMultiPartPromise ?: Promise < CreateMultipartUploadCommandOutput > ;
60
60
@@ -362,7 +362,7 @@ export class Upload extends EventEmitter {
362
362
}
363
363
}
364
364
365
- private async __abortTimeout ( abortSignal : AbortSignal ) : Promise < never > {
365
+ private async __abortTimeout ( abortSignal : IAbortSignal ) : Promise < never > {
366
366
return new Promise ( ( resolve , reject ) => {
367
367
abortSignal . onabort = ( ) => {
368
368
const abortError = new Error ( "Upload aborted." ) ;
0 commit comments