Skip to content

Commit

Permalink
Merge pull request #637 from Esri/f/aggs-counts-array
Browse files Browse the repository at this point in the history
aggs counts should be an array
  • Loading branch information
pranavkulkarni authored Nov 14, 2019
2 parents 9e755b7 + 72b3bf7 commit c9f26b9
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: {
counts: Array<{
fieldName: string;
fieldValues: Array<{
value: any;
count: number;
}>;
};
}>;
};
}

0 comments on commit c9f26b9

Please sign in to comment.