From 55a1e27c3d84383bceac86442987806249f4a6b3 Mon Sep 17 00:00:00 2001 From: Pranav Kulkarni Date: Thu, 14 Nov 2019 13:45:12 -0500 Subject: [PATCH] Revert "aggs counts should be an array" This reverts commit 24bdec63ee079144563e84d8d99fac2d11c6c1bd. --- packages/arcgis-rest-portal/src/util/search.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/arcgis-rest-portal/src/util/search.ts b/packages/arcgis-rest-portal/src/util/search.ts index d15b8daf97..91ab87361b 100644 --- a/packages/arcgis-rest-portal/src/util/search.ts +++ b/packages/arcgis-rest-portal/src/util/search.ts @@ -27,12 +27,12 @@ export interface ISearchResult { * Aggregations will only be present on item searches when [`fieldCounts`](https://developers.arcgis.com/rest/users-groups-and-items/search.htm#GUID-1C625F8A-4A12-45BB-B537-74C82315759A) are requested. */ aggregations?: { - counts: Array<{ + counts: { fieldName: string; fieldValues: Array<{ value: any; count: number; }>; - }>; + }; }; }