From f34d352dafcd703d568a888b6bfc0ea2053b5558 Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Mon, 3 Jan 2022 14:27:58 +0000 Subject: [PATCH] Revert "chore(lib-storage): reformat with prettier v2.5.1 (#3108)" This reverts commit cac7ad0ba223781e199d16t485340734b73765c56. --- .../src/commands/BatchGetCommand.ts | 18 +++++++++++++++--- .../src/commands/ExecuteStatementCommand.ts | 4 +++- lib/lib-dynamodb/src/commands/QueryCommand.ts | 4 +++- lib/lib-dynamodb/src/commands/ScanCommand.ts | 4 +++- 4 files changed, 24 insertions(+), 6 deletions(-) diff --git a/lib/lib-dynamodb/src/commands/BatchGetCommand.ts b/lib/lib-dynamodb/src/commands/BatchGetCommand.ts index eb39709b4425..ccd270f65742 100644 --- a/lib/lib-dynamodb/src/commands/BatchGetCommand.ts +++ b/lib/lib-dynamodb/src/commands/BatchGetCommand.ts @@ -15,17 +15,29 @@ export type BatchGetCommandInput = Omit<__BatchGetItemCommandInput, "RequestItem RequestItems: | { [key: string]: Omit & { - Keys: { [key: string]: NativeAttributeValue }[] | undefined; + Keys: + | { + [key: string]: NativeAttributeValue; + }[] + | undefined; }; } | undefined; }; export type BatchGetCommandOutput = Omit<__BatchGetItemCommandOutput, "Responses" | "UnprocessedKeys"> & { - Responses?: { [key: string]: { [key: string]: NativeAttributeValue }[] }; + Responses?: { + [key: string]: { + [key: string]: NativeAttributeValue; + }[]; + }; UnprocessedKeys?: { [key: string]: Omit & { - Keys: { [key: string]: NativeAttributeValue }[] | undefined; + Keys: + | { + [key: string]: NativeAttributeValue; + }[] + | undefined; }; }; }; diff --git a/lib/lib-dynamodb/src/commands/ExecuteStatementCommand.ts b/lib/lib-dynamodb/src/commands/ExecuteStatementCommand.ts index d868acaf13d2..eaf403bcba4a 100644 --- a/lib/lib-dynamodb/src/commands/ExecuteStatementCommand.ts +++ b/lib/lib-dynamodb/src/commands/ExecuteStatementCommand.ts @@ -15,7 +15,9 @@ export type ExecuteStatementCommandInput = Omit<__ExecuteStatementCommandInput, }; export type ExecuteStatementCommandOutput = Omit<__ExecuteStatementCommandOutput, "Items"> & { - Items?: { [key: string]: NativeAttributeValue }[]; + Items?: { + [key: string]: NativeAttributeValue; + }[]; }; /** diff --git a/lib/lib-dynamodb/src/commands/QueryCommand.ts b/lib/lib-dynamodb/src/commands/QueryCommand.ts index a3a358c01d81..944fa9a4ff25 100644 --- a/lib/lib-dynamodb/src/commands/QueryCommand.ts +++ b/lib/lib-dynamodb/src/commands/QueryCommand.ts @@ -30,7 +30,9 @@ export type QueryCommandInput = Omit< }; export type QueryCommandOutput = Omit<__QueryCommandOutput, "Items" | "LastEvaluatedKey"> & { - Items?: { [key: string]: NativeAttributeValue }[]; + Items?: { + [key: string]: NativeAttributeValue; + }[]; LastEvaluatedKey?: { [key: string]: NativeAttributeValue }; }; diff --git a/lib/lib-dynamodb/src/commands/ScanCommand.ts b/lib/lib-dynamodb/src/commands/ScanCommand.ts index d03e151a4b9f..95638d7d4fc1 100644 --- a/lib/lib-dynamodb/src/commands/ScanCommand.ts +++ b/lib/lib-dynamodb/src/commands/ScanCommand.ts @@ -25,7 +25,9 @@ export type ScanCommandInput = Omit< }; export type ScanCommandOutput = Omit<__ScanCommandOutput, "Items" | "LastEvaluatedKey"> & { - Items?: { [key: string]: NativeAttributeValue }[]; + Items?: { + [key: string]: NativeAttributeValue; + }[]; LastEvaluatedKey?: { [key: string]: NativeAttributeValue }; };