Skip to content

Commit b92e91e

Browse files
trivikrsrchase
authored andcommitted
Pass additinal parameters as a map in resolve function (smithy-lang#372)
1 parent c3afb19 commit b92e91e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ private void generateConstructor() {
320320

321321
String additionalParamsString = additionalParameters.isEmpty()
322322
? ""
323-
: ", " + String.join(", ", additionalParameters);
323+
: ", { " + String.join(", ", additionalParameters) + "}";
324324
writer.write("let $L = $T($L$L);",
325325
generateConfigVariable(configVariable),
326326
plugin.getResolveFunction().get(),

0 commit comments

Comments
 (0)