Skip to content

Commit

Permalink
Use Record type in event stream deserializer (smithy-lang#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored and srchase committed Mar 17, 2023
1 parent 527e3e2 commit 42488ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2404,7 +2404,7 @@ private void generateEventStreamDeserializer(GenerationContext context, MemberSh
writer.openBlock("const eventHeaders = Object.entries(event[eventName].headers).reduce(", ");", () -> {
writer.write(
"(accummulator, curr) => {accummulator[curr[0]] = curr[1].value; return accummulator; },");
writer.write("{} as {[key: string]: any}");
writer.write("{} as Record<string, any>");
});
writer.openBlock("const eventMessage = {", "};", () -> {
writer.write("headers: eventHeaders,");
Expand Down

0 comments on commit 42488ae

Please sign in to comment.