From 078f0cc7b6a67860c6ff721618d9b5807d808c13 Mon Sep 17 00:00:00 2001 From: Matthew Kime Date: Thu, 29 Jul 2021 13:05:13 -0500 Subject: [PATCH] use IndexPattern instead of IIndexPattern (#107108) --- x-pack/plugins/uptime/public/hooks/update_kuery_string.ts | 5 +++-- x-pack/plugins/uptime/public/state/reducers/index_pattern.ts | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts b/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts index 11b5d8a51c9a8..6ed4add217ae7 100644 --- a/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts +++ b/x-pack/plugins/uptime/public/hooks/update_kuery_string.ts @@ -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?] => { diff --git a/x-pack/plugins/uptime/public/state/reducers/index_pattern.ts b/x-pack/plugins/uptime/public/state/reducers/index_pattern.ts index 3fb2ada060d65..d16860850bd78 100644 --- a/x-pack/plugins/uptime/public/state/reducers/index_pattern.ts +++ b/x-pack/plugins/uptime/public/state/reducers/index_pattern.ts @@ -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; }