Skip to content

Commit e5d2e1c

Browse files
authored
chore(clients): set bodyLengthChecker type to BodyLengthCalculator (#3405)
1 parent 7e4abf7 commit e5d2e1c

File tree

305 files changed

+610
-305
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

305 files changed

+610
-305
lines changed

clients/client-accessanalyzer/src/AccessAnalyzerClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -187,7 +188,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
187188
* A function that can calculate the length of a request body.
188189
* @internal
189190
*/
190-
bodyLengthChecker?: (body: any) => number | undefined;
191+
bodyLengthChecker?: __BodyLengthCalculator;
191192

192193
/**
193194
* A function that converts a stream into an array of bytes.

clients/client-account/src/AccountClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -97,7 +98,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
9798
* A function that can calculate the length of a request body.
9899
* @internal
99100
*/
100-
bodyLengthChecker?: (body: any) => number | undefined;
101+
bodyLengthChecker?: __BodyLengthCalculator;
101102

102103
/**
103104
* A function that converts a stream into an array of bytes.

clients/client-acm-pca/src/ACMPCAClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -187,7 +188,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
187188
* A function that can calculate the length of a request body.
188189
* @internal
189190
*/
190-
bodyLengthChecker?: (body: any) => number | undefined;
191+
bodyLengthChecker?: __BodyLengthCalculator;
191192

192193
/**
193194
* A function that converts a stream into an array of bytes.

clients/client-acm/src/ACMClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -148,7 +149,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
148149
* A function that can calculate the length of a request body.
149150
* @internal
150151
*/
151-
bodyLengthChecker?: (body: any) => number | undefined;
152+
bodyLengthChecker?: __BodyLengthCalculator;
152153

153154
/**
154155
* A function that converts a stream into an array of bytes.

clients/client-alexa-for-business/src/AlexaForBusinessClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -475,7 +476,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
475476
* A function that can calculate the length of a request body.
476477
* @internal
477478
*/
478-
bodyLengthChecker?: (body: any) => number | undefined;
479+
bodyLengthChecker?: __BodyLengthCalculator;
479480

480481
/**
481482
* A function that converts a stream into an array of bytes.

clients/client-amp/src/AmpClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -163,7 +164,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
163164
* A function that can calculate the length of a request body.
164165
* @internal
165166
*/
166-
bodyLengthChecker?: (body: any) => number | undefined;
167+
bodyLengthChecker?: __BodyLengthCalculator;
167168

168169
/**
169170
* A function that converts a stream into an array of bytes.

clients/client-amplify/src/AmplifyClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -220,7 +221,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
220221
* A function that can calculate the length of a request body.
221222
* @internal
222223
*/
223-
bodyLengthChecker?: (body: any) => number | undefined;
224+
bodyLengthChecker?: __BodyLengthCalculator;
224225

225226
/**
226227
* A function that converts a stream into an array of bytes.

clients/client-amplifybackend/src/AmplifyBackendClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -199,7 +200,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
199200
* A function that can calculate the length of a request body.
200201
* @internal
201202
*/
202-
bodyLengthChecker?: (body: any) => number | undefined;
203+
bodyLengthChecker?: __BodyLengthCalculator;
203204

204205
/**
205206
* A function that converts a stream into an array of bytes.

clients/client-amplifyuibuilder/src/AmplifyUIBuilderClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -124,7 +125,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
124125
* A function that can calculate the length of a request body.
125126
* @internal
126127
*/
127-
bodyLengthChecker?: (body: any) => number | undefined;
128+
bodyLengthChecker?: __BodyLengthCalculator;
128129

129130
/**
130131
* A function that converts a stream into an array of bytes.

clients/client-api-gateway/src/APIGatewayClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import {
3636
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3737
} from "@aws-sdk/smithy-client";
3838
import {
39+
BodyLengthCalculator as __BodyLengthCalculator,
3940
Credentials as __Credentials,
4041
Decoder as __Decoder,
4142
Encoder as __Encoder,
@@ -548,7 +549,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
548549
* A function that can calculate the length of a request body.
549550
* @internal
550551
*/
551-
bodyLengthChecker?: (body: any) => number | undefined;
552+
bodyLengthChecker?: __BodyLengthCalculator;
552553

553554
/**
554555
* A function that converts a stream into an array of bytes.

0 commit comments

Comments
 (0)