Skip to content

Commit

Permalink
Revert "chore(lib-storage): reformat with prettier v2.5.1 (#3108)"
Browse files Browse the repository at this point in the history
This reverts commit cac7ad0ba223781e199d16t485340734b73765c56.
  • Loading branch information
trivikr committed Jan 3, 2022
1 parent 4a1fa94 commit f34d352
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 6 deletions.
18 changes: 15 additions & 3 deletions lib/lib-dynamodb/src/commands/BatchGetCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,29 @@ export type BatchGetCommandInput = Omit<__BatchGetItemCommandInput, "RequestItem
RequestItems:
| {
[key: string]: Omit<KeysAndAttributes, "Keys"> & {
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<KeysAndAttributes, "Keys"> & {
Keys: { [key: string]: NativeAttributeValue }[] | undefined;
Keys:
| {
[key: string]: NativeAttributeValue;
}[]
| undefined;
};
};
};
Expand Down
4 changes: 3 additions & 1 deletion lib/lib-dynamodb/src/commands/ExecuteStatementCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export type ExecuteStatementCommandInput = Omit<__ExecuteStatementCommandInput,
};

export type ExecuteStatementCommandOutput = Omit<__ExecuteStatementCommandOutput, "Items"> & {
Items?: { [key: string]: NativeAttributeValue }[];
Items?: {
[key: string]: NativeAttributeValue;
}[];
};

/**
Expand Down
4 changes: 3 additions & 1 deletion lib/lib-dynamodb/src/commands/QueryCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
};

Expand Down
4 changes: 3 additions & 1 deletion lib/lib-dynamodb/src/commands/ScanCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
};

Expand Down

0 comments on commit f34d352

Please sign in to comment.