From 618e488e3323f29b0bbc8b7f858620fe82a37ce4 Mon Sep 17 00:00:00 2001 From: AllanZhengYP Date: Thu, 23 Dec 2021 00:06:52 +0000 Subject: [PATCH] chore(lib-storage): reformat with smithy v2.5.1 --- .../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, 6 insertions(+), 24 deletions(-) diff --git a/lib/lib-dynamodb/src/commands/BatchGetCommand.ts b/lib/lib-dynamodb/src/commands/BatchGetCommand.ts index ccd270f65742..eb39709b4425 100644 --- a/lib/lib-dynamodb/src/commands/BatchGetCommand.ts +++ b/lib/lib-dynamodb/src/commands/BatchGetCommand.ts @@ -15,29 +15,17 @@ 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 eaf403bcba4a..d868acaf13d2 100644 --- a/lib/lib-dynamodb/src/commands/ExecuteStatementCommand.ts +++ b/lib/lib-dynamodb/src/commands/ExecuteStatementCommand.ts @@ -15,9 +15,7 @@ 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 944fa9a4ff25..a3a358c01d81 100644 --- a/lib/lib-dynamodb/src/commands/QueryCommand.ts +++ b/lib/lib-dynamodb/src/commands/QueryCommand.ts @@ -30,9 +30,7 @@ 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 95638d7d4fc1..d03e151a4b9f 100644 --- a/lib/lib-dynamodb/src/commands/ScanCommand.ts +++ b/lib/lib-dynamodb/src/commands/ScanCommand.ts @@ -25,9 +25,7 @@ export type ScanCommandInput = Omit< }; export type ScanCommandOutput = Omit<__ScanCommandOutput, "Items" | "LastEvaluatedKey"> & { - Items?: { - [key: string]: NativeAttributeValue; - }[]; + Items?: { [key: string]: NativeAttributeValue }[]; LastEvaluatedKey?: { [key: string]: NativeAttributeValue }; };