Skip to content

Commit

Permalink
♻️ Revert esaggs type refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
dej611 committed Sep 22, 2020
1 parent 4cfa4e6 commit cdff81b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/plugins/data/common/search/aggs/buckets/range.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,12 @@ export interface RangeBucketAggDependencies {
getFieldFormatsStart: AggTypesDependencies['getFieldFormatsStart'];
}

export interface RangeType {
from: number;
to: number;
}

export interface AggParamsRange extends BaseAggParams {
field: string;
ranges?: RangeType[];
ranges?: Array<{
from: number;
to: number;
}>;
}

export const getRangeBucketAgg = ({ getFieldFormatsStart }: RangeBucketAggDependencies) => {
Expand Down

0 comments on commit cdff81b

Please sign in to comment.