use IndexPattern instead of IIndexPattern (#107108)

This commit is contained in:
Matthew Kime 2021-07-29 13:05:13 -05:00 committed by GitHub
parent 7c949c0e98
commit a1981d5248
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -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 => {
@ -25,7 +26,7 @@ const getKueryString = (urlFilters: string): string => {
};
export const useUpdateKueryString = (
indexPattern: IIndexPattern | null,
indexPattern: IndexPattern | null,
filterQueryString = '',
urlFilters: string
): [string?, Error?] => {

View file

@ -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;
}