From d0f0dc37f8a54246e3248c02b075878c6f0a04a4 Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Thu, 2 Jun 2022 20:30:24 +0000 Subject: [PATCH] chore(clients): use Record in event stream deserializer --- clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts | 2 +- clients/client-s3/src/protocols/Aws_restXml.ts | 2 +- .../src/protocols/Aws_restJson1.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts b/clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts index fdce07c87611..54b441bb3bb0 100644 --- a/clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts +++ b/clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts @@ -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); const eventMessage = { headers: eventHeaders, body: event[eventName].body, diff --git a/clients/client-s3/src/protocols/Aws_restXml.ts b/clients/client-s3/src/protocols/Aws_restXml.ts index c89c3b267dcd..18e6a6079c83 100644 --- a/clients/client-s3/src/protocols/Aws_restXml.ts +++ b/clients/client-s3/src/protocols/Aws_restXml.ts @@ -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); const eventMessage = { headers: eventHeaders, body: event[eventName].body, diff --git a/clients/client-transcribe-streaming/src/protocols/Aws_restJson1.ts b/clients/client-transcribe-streaming/src/protocols/Aws_restJson1.ts index 3d347204ad0c..85a09cdd3674 100644 --- a/clients/client-transcribe-streaming/src/protocols/Aws_restJson1.ts +++ b/clients/client-transcribe-streaming/src/protocols/Aws_restJson1.ts @@ -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); const eventMessage = { headers: eventHeaders, body: event[eventName].body, @@ -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); const eventMessage = { headers: eventHeaders, body: event[eventName].body,