Skip to content

Commit 08bec3a

Browse files
committed
chore: change requestChecksumCalculation type to union
1 parent 2dbf69e commit 08bec3a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/middleware-flexible-checksums/src/configuration.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import {
99
StreamHasher,
1010
} from "@smithy/types";
1111

12+
import { RequestChecksumCalculation } from "./constants";
13+
1214
export interface PreviouslyResolved {
1315
/**
1416
* The function that will be used to convert binary data to a base64-encoded string.
@@ -35,7 +37,7 @@ export interface PreviouslyResolved {
3537
/**
3638
* Determines when a checksum will be calculated for request payloads
3739
*/
38-
requestChecksumCalculation: Provider<string>;
40+
requestChecksumCalculation: Provider<RequestChecksumCalculation>;
3941

4042
/**
4143
* A constructor for a class implementing the {@link Hash} interface that computes SHA1 hashes.

packages/middleware-flexible-checksums/src/getChecksumAlgorithmForRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export interface GetChecksumAlgorithmForRequestOptions {
2020
/**
2121
* Determines when a checksum will be calculated for request payloads
2222
*/
23-
requestChecksumCalculation: string;
23+
requestChecksumCalculation: RequestChecksumCalculation;
2424
}
2525

2626
/**

0 commit comments

Comments
 (0)