Skip to content

Commit 8ad8f91

Browse files
committed
chore: use array Shorthand symtax (rebased from master)
1 parent 117cc8e commit 8ad8f91

File tree

8 files changed

+12
-15
lines changed

8 files changed

+12
-15
lines changed

clients/client-device-farm/models/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4852,7 +4852,7 @@ export namespace ListUniqueProblemsResult {
48524852
...obj,
48534853
...(obj.uniqueProblems && {
48544854
uniqueProblems: Object.entries(obj.uniqueProblems).reduce(
4855-
(acc: any, [key, value]: [string, Array<UniqueProblem>]) => {
4855+
(acc: any, [key, value]: [string, UniqueProblem[]]) => {
48564856
acc[key] = value.map(UniqueProblem.filterSensitiveLog);
48574857
return acc;
48584858
},

clients/client-dynamodb/models/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ export namespace BatchGetItemOutput {
10851085
Responses: Object.entries(obj.Responses).reduce(
10861086
(
10871087
acc: any,
1088-
[key, value]: [string, Array<{ [key: string]: AttributeValue }>]
1088+
[key, value]: [string, { [key: string]: AttributeValue }[]]
10891089
) => {
10901090
acc[key] = value.map(item =>
10911091
Object.entries(item).reduce(
@@ -1193,7 +1193,7 @@ export namespace BatchWriteItemInput {
11931193
...obj,
11941194
...(obj.RequestItems && {
11951195
RequestItems: Object.entries(obj.RequestItems).reduce(
1196-
(acc: any, [key, value]: [string, Array<WriteRequest>]) => {
1196+
(acc: any, [key, value]: [string, WriteRequest[]]) => {
11971197
acc[key] = value.map(WriteRequest.filterSensitiveLog);
11981198
return acc;
11991199
},
@@ -1303,7 +1303,7 @@ export namespace BatchWriteItemOutput {
13031303
}),
13041304
...(obj.ItemCollectionMetrics && {
13051305
ItemCollectionMetrics: Object.entries(obj.ItemCollectionMetrics).reduce(
1306-
(acc: any, [key, value]: [string, Array<ItemCollectionMetrics>]) => {
1306+
(acc: any, [key, value]: [string, ItemCollectionMetrics[]]) => {
13071307
acc[key] = value.map(ItemCollectionMetrics.filterSensitiveLog);
13081308
return acc;
13091309
},
@@ -1312,7 +1312,7 @@ export namespace BatchWriteItemOutput {
13121312
}),
13131313
...(obj.UnprocessedItems && {
13141314
UnprocessedItems: Object.entries(obj.UnprocessedItems).reduce(
1315-
(acc: any, [key, value]: [string, Array<WriteRequest>]) => {
1315+
(acc: any, [key, value]: [string, WriteRequest[]]) => {
13161316
acc[key] = value.map(WriteRequest.filterSensitiveLog);
13171317
return acc;
13181318
},
@@ -9021,7 +9021,7 @@ export namespace TransactWriteItemsOutput {
90219021
}),
90229022
...(obj.ItemCollectionMetrics && {
90239023
ItemCollectionMetrics: Object.entries(obj.ItemCollectionMetrics).reduce(
9024-
(acc: any, [key, value]: [string, Array<ItemCollectionMetrics>]) => {
9024+
(acc: any, [key, value]: [string, ItemCollectionMetrics[]]) => {
90259025
acc[key] = value.map(ItemCollectionMetrics.filterSensitiveLog);
90269026
return acc;
90279027
},

clients/client-forecastquery/models/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export namespace Forecast {
5858
...obj,
5959
...(obj.Predictions && {
6060
Predictions: Object.entries(obj.Predictions).reduce(
61-
(acc: any, [key, value]: [string, Array<DataPoint>]) => {
61+
(acc: any, [key, value]: [string, DataPoint[]]) => {
6262
acc[key] = value.map(DataPoint.filterSensitiveLog);
6363
return acc;
6464
},

clients/client-lightsail/models/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,7 @@ export namespace CreateInstancesFromSnapshotRequest {
15381538
}),
15391539
...(obj.attachedDiskMapping && {
15401540
attachedDiskMapping: Object.entries(obj.attachedDiskMapping).reduce(
1541-
(acc: any, [key, value]: [string, Array<DiskMap>]) => {
1541+
(acc: any, [key, value]: [string, DiskMap[]]) => {
15421542
acc[key] = value.map(DiskMap.filterSensitiveLog);
15431543
return acc;
15441544
},

clients/client-pinpoint-email/models/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1657,7 +1657,7 @@ export namespace GetBlacklistReportsResponse {
16571657
...obj,
16581658
...(obj.BlacklistReport && {
16591659
BlacklistReport: Object.entries(obj.BlacklistReport).reduce(
1660-
(acc: any, [key, value]: [string, Array<BlacklistEntry>]) => {
1660+
(acc: any, [key, value]: [string, BlacklistEntry[]]) => {
16611661
acc[key] = value.map(BlacklistEntry.filterSensitiveLog);
16621662
return acc;
16631663
},

clients/client-service-catalog/models/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7137,10 +7137,7 @@ export namespace SearchProductsOutput {
71377137
ProductViewAggregations: Object.entries(
71387138
obj.ProductViewAggregations
71397139
).reduce(
7140-
(
7141-
acc: any,
7142-
[key, value]: [string, Array<ProductViewAggregationValue>]
7143-
) => {
7140+
(acc: any, [key, value]: [string, ProductViewAggregationValue[]]) => {
71447141
acc[key] = value.map(ProductViewAggregationValue.filterSensitiveLog);
71457142
return acc;
71467143
},

clients/client-sesv2/models/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1876,7 +1876,7 @@ export namespace GetBlacklistReportsResponse {
18761876
...obj,
18771877
...(obj.BlacklistReport && {
18781878
BlacklistReport: Object.entries(obj.BlacklistReport).reduce(
1879-
(acc: any, [key, value]: [string, Array<BlacklistEntry>]) => {
1879+
(acc: any, [key, value]: [string, BlacklistEntry[]]) => {
18801880
acc[key] = value.map(BlacklistEntry.filterSensitiveLog);
18811881
return acc;
18821882
},

clients/client-xray/models/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2614,7 +2614,7 @@ export namespace TraceSummary {
26142614
...obj,
26152615
...(obj.Annotations && {
26162616
Annotations: Object.entries(obj.Annotations).reduce(
2617-
(acc: any, [key, value]: [string, Array<ValueWithServiceIds>]) => {
2617+
(acc: any, [key, value]: [string, ValueWithServiceIds[]]) => {
26182618
acc[key] = value.map(ValueWithServiceIds.filterSensitiveLog);
26192619
return acc;
26202620
},

0 commit comments

Comments
 (0)