Skip to content

Commit 8c8933b

Browse files
trivikrsrchase
authored andcommitted
Set bodyLengthChecker type to BodyLengthCalculator (smithy-lang#524)
1 parent 0781066 commit 8c8933b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/ServiceBareBonesClientGenerator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,10 @@ private void generateClientDefaults() {
226226
+ "@internal");
227227
writer.write("urlParser?: __UrlParser;\n");
228228

229+
writer.addImport("BodyLengthCalculator", "__BodyLengthCalculator", "@aws-sdk/types");
229230
writer.writeDocs("A function that can calculate the length of a request body.\n"
230231
+ "@internal");
231-
writer.write("bodyLengthChecker?: (body: any) => number | undefined;\n");
232+
writer.write("bodyLengthChecker?: __BodyLengthCalculator;\n");
232233

233234
writer.addImport("StreamCollector", "__StreamCollector", "@aws-sdk/types");
234235
writer.writeDocs("A function that converts a stream into an array of bytes.\n"

0 commit comments

Comments
 (0)