Skip to content

Commit

Permalink
[discover] remove IFieldType references (elastic#107237)
Browse files Browse the repository at this point in the history
* remove IFieldType references

* remove IFieldType references

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
2 people authored and vadimkibana committed Aug 8, 2021
1 parent 26d816d commit 3f7875b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { mountWithIntl } from '@kbn/test/jest';
import { TableHeader } from './table_header';
import { findTestSubject } from '@elastic/eui/lib/test';
import { SortOrder } from './helpers';
import { IndexPattern, IFieldType } from '../../../../../kibana_services';
import { IndexPattern, IndexPatternField } from '../../../../../kibana_services';

function getMockIndexPattern() {
return ({
Expand All @@ -29,7 +29,7 @@ function getMockIndexPattern() {
aggregatable: false,
searchable: true,
sortable: true,
} as IFieldType;
} as IndexPatternField;
} else {
return {
name,
Expand All @@ -38,7 +38,7 @@ function getMockIndexPattern() {
aggregatable: false,
searchable: true,
sortable: false,
} as IFieldType;
} as IndexPatternField;
}
},
} as unknown) as IndexPattern;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
Query,
TimeRange,
Filter,
IFieldType,
IndexPatternField,
IndexPattern,
ISearchSource,
} from '../../../../data/common';
Expand Down Expand Up @@ -50,7 +50,7 @@ export interface SearchProps extends Partial<DiscoverGridProps> {
sharedItemTitle?: string;
inspectorAdapters?: Adapters;

filter?: (field: IFieldType, value: string[], operator: string) => void;
filter?: (field: IndexPatternField, value: string[], operator: string) => void;
hits?: ElasticSearchHit[];
totalHitCount?: number;
onMoveColumn?: (column: string, index: number) => void;
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/discover/public/kibana_services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export {
IIndexPattern,
IndexPattern,
indexPatterns,
IFieldType,
IndexPatternField,
ISearchSource,
EsQuerySortValue,
SortDirection,
Expand Down

0 comments on commit 3f7875b

Please sign in to comment.