Skip to content

Commit 062ebfa

Browse files
authored
Use Record type in place of Object in HttpBindingProtocolGenerator (#562)
1 parent 0cece23 commit 062ebfa

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/integration/HttpBindingProtocolGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2245,7 +2245,7 @@ private List<HttpBinding> readBody(
22452245
if (operationOrError instanceof StructureShape) {
22462246
bodyLocation = getErrorBodyLocation(context, bodyLocation);
22472247
}
2248-
writer.write("const data: { [key: string] : any } = __expectNonNull($L, $S);", bodyLocation, "body");
2248+
writer.write("const data: Record<string, any> = __expectNonNull($L, $S);", bodyLocation, "body");
22492249

22502250
if (isInput) {
22512251
deserializeInputDocumentBody(context, operationOrError.asOperationShape().get(), documentBindings);

0 commit comments

Comments
 (0)