File tree 4 files changed +8
-8
lines changed
middleware-apply-body-checksum/src
4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
- import { Encoder , Hash , StreamHasher } from "@aws-sdk/types" ;
1
+ import { Encoder , HashConstructor , StreamHasher } from "@aws-sdk/types" ;
2
2
3
3
export interface Md5BodyChecksumInputConfig { }
4
4
interface PreviouslyResolved {
5
- md5 : { new ( ) : Hash } ;
5
+ md5 : HashConstructor ;
6
6
base64Encoder : Encoder ;
7
7
streamHasher : StreamHasher < any > ;
8
8
}
@@ -12,7 +12,7 @@ export interface Md5BodyChecksumResolvedConfig {
12
12
* A constructor for a class implementing the @aws-sdk/types.Hash interface that computes MD5 hashes.
13
13
* @internal
14
14
*/
15
- md5 : { new ( ) : Hash } ;
15
+ md5 : HashConstructor ;
16
16
/**
17
17
* The function that will be used to convert binary data to a base64-encoded string.
18
18
* @internal
Original file line number Diff line number Diff line change 1
- import { Hash } from "@aws-sdk/types" ;
1
+ import { HashConstructor } from "@aws-sdk/types" ;
2
2
3
3
export interface PreviouslyResolved {
4
- md5 : { new ( ) : Hash } ;
4
+ md5 : HashConstructor ;
5
5
}
Original file line number Diff line number Diff line change 1
1
import {
2
2
Decoder ,
3
3
Encoder ,
4
- Hash ,
4
+ HashConstructor ,
5
5
InitializeHandler ,
6
6
InitializeHandlerArguments ,
7
7
InitializeHandlerOptions ,
@@ -13,7 +13,7 @@ import {
13
13
} from "@aws-sdk/types" ;
14
14
interface PreviouslyResolved {
15
15
base64Encoder : Encoder ;
16
- md5 : { new ( ) : Hash } ;
16
+ md5 : HashConstructor ;
17
17
utf8Decoder : Decoder ;
18
18
}
19
19
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export interface HashConstructor {
38
38
* implementation of this interface.
39
39
*/
40
40
export interface StreamHasher < StreamType = any > {
41
- ( hashCtor : { new ( ) : Hash } , stream : StreamType ) : Promise < Uint8Array > ;
41
+ ( hashCtor : HashConstructor , stream : StreamType ) : Promise < Uint8Array > ;
42
42
}
43
43
44
44
/**
You can’t perform that action at this time.
0 commit comments