Skip to content

Commit

Permalink
fix(aggs counts should be array): aggs counts should be array
Browse files Browse the repository at this point in the history
aggs counts should be array

AFFECTS PACKAGES:
@esri/arcgis-rest-portal
  • Loading branch information
Pranav Kulkarni committed Nov 14, 2019
1 parent 55a1e27 commit 72b3bf7
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 72b3bf7

Please sign in to comment.