Skip to content

Commit

Permalink
Revert "aggs counts should be an array"
Browse files Browse the repository at this point in the history
This reverts commit 24bdec6.
  • Loading branch information
Pranav Kulkarni committed Nov 14, 2019
1 parent 24bdec6 commit 55a1e27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/arcgis-rest-portal/src/util/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ export interface ISearchResult<T extends IItem | IGroup | IUser> {
* 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;
}>;
}>;
};
};
}

0 comments on commit 55a1e27

Please sign in to comment.