Skip to content

chore(clients): use Record type in event stream deserializer #3657

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ export const deserializeAws_restJson1StartConversationCommand = async (
const eventHeaders = Object.entries(event[eventName].headers).reduce((accummulator, curr) => {
accummulator[curr[0]] = curr[1].value;
return accummulator;
}, {} as { [key: string]: any });
}, {} as Record<string, any>);
const eventMessage = {
headers: eventHeaders,
body: event[eventName].body,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-s3/src/protocols/Aws_restXml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9648,7 +9648,7 @@ export const deserializeAws_restXmlSelectObjectContentCommand = async (
const eventHeaders = Object.entries(event[eventName].headers).reduce((accummulator, curr) => {
accummulator[curr[0]] = curr[1].value;
return accummulator;
}, {} as { [key: string]: any });
}, {} as Record<string, any>);
const eventMessage = {
headers: eventHeaders,
body: event[eventName].body,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export const deserializeAws_restJson1StartMedicalStreamTranscriptionCommand = as
const eventHeaders = Object.entries(event[eventName].headers).reduce((accummulator, curr) => {
accummulator[curr[0]] = curr[1].value;
return accummulator;
}, {} as { [key: string]: any });
}, {} as Record<string, any>);
const eventMessage = {
headers: eventHeaders,
body: event[eventName].body,
Expand Down Expand Up @@ -407,7 +407,7 @@ export const deserializeAws_restJson1StartStreamTranscriptionCommand = async (
const eventHeaders = Object.entries(event[eventName].headers).reduce((accummulator, curr) => {
accummulator[curr[0]] = curr[1].value;
return accummulator;
}, {} as { [key: string]: any });
}, {} as Record<string, any>);
const eventMessage = {
headers: eventHeaders,
body: event[eventName].body,
Expand Down