Skip to content

Commit

Permalink
use IndexPattern instead of IIndexPattern
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Jul 29, 2021
1 parent 05cebcd commit 84d4dab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions x-pack/plugins/uptime/public/hooks/update_kuery_string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
* 2.0.
*/

import { esKuery, IIndexPattern } from '../../../../../src/plugins/data/public';
import { esKuery } from '../../../../../src/plugins/data/public';
import type { IndexPattern } from '../../../../../src/plugins/data/public';
import { combineFiltersAndUserSearch, stringifyKueries } from '../../common/lib';

const getKueryString = (urlFilters: string): string => {
Expand All @@ -25,7 +26,7 @@ const getKueryString = (urlFilters: string): string => {
};

export const useUpdateKueryString = (
indexPattern: IIndexPattern | null,
indexPattern: IndexPattern | null,
filterQueryString = '',
urlFilters: string
): [string?, Error?] => {
Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/uptime/public/state/reducers/index_pattern.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

import { handleActions, Action } from 'redux-actions';
import { getIndexPattern, getIndexPatternSuccess, getIndexPatternFail } from '../actions';
import { IIndexPattern } from '../../../../../../src/plugins/data/common/index_patterns';
import type { IndexPattern } from '../../../../../../src/plugins/data/common/index_patterns';

export interface IndexPatternState {
index_pattern: IIndexPattern | null;
index_pattern: IndexPattern | null;
errors: any[];
loading: boolean;
}
Expand Down

0 comments on commit 84d4dab

Please sign in to comment.