File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
middleware-apply-body-checksum/src Expand file tree Collapse file tree 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" ;
22
33export interface Md5BodyChecksumInputConfig { }
44interface PreviouslyResolved {
5- md5 : { new ( ) : Hash } ;
5+ md5 : HashConstructor ;
66 base64Encoder : Encoder ;
77 streamHasher : StreamHasher < any > ;
88}
@@ -12,7 +12,7 @@ export interface Md5BodyChecksumResolvedConfig {
1212 * A constructor for a class implementing the @aws-sdk/types.Hash interface that computes MD5 hashes.
1313 * @internal
1414 */
15- md5 : { new ( ) : Hash } ;
15+ md5 : HashConstructor ;
1616 /**
1717 * The function that will be used to convert binary data to a base64-encoded string.
1818 * @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" ;
22
33export interface PreviouslyResolved {
4- md5 : { new ( ) : Hash } ;
4+ md5 : HashConstructor ;
55}
Original file line number Diff line number Diff line change 11import {
22 Decoder ,
33 Encoder ,
4- Hash ,
4+ HashConstructor ,
55 InitializeHandler ,
66 InitializeHandlerArguments ,
77 InitializeHandlerOptions ,
@@ -13,7 +13,7 @@ import {
1313} from "@aws-sdk/types" ;
1414interface PreviouslyResolved {
1515 base64Encoder : Encoder ;
16- md5 : { new ( ) : Hash } ;
16+ md5 : HashConstructor ;
1717 utf8Decoder : Decoder ;
1818}
1919
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export interface HashConstructor {
3838 * implementation of this interface.
3939 */
4040export interface StreamHasher < StreamType = any > {
41- ( hashCtor : { new ( ) : Hash } , stream : StreamType ) : Promise < Uint8Array > ;
41+ ( hashCtor : HashConstructor , stream : StreamType ) : Promise < Uint8Array > ;
4242}
4343
4444/**
You can’t perform that action at this time.
0 commit comments