From a1e7a3221335c788ea10edda2c0f0d6b8f26f13c Mon Sep 17 00:00:00 2001 From: Matt Kime Date: Thu, 29 Jul 2021 13:38:28 -0500 Subject: [PATCH] use IndexPattern instead of IIndexPattern --- .../saved_objects/public/saved_object/saved_object.test.ts | 6 +++--- src/plugins/saved_objects/public/types.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/plugins/saved_objects/public/saved_object/saved_object.test.ts b/src/plugins/saved_objects/public/saved_object/saved_object.test.ts index 169160b247cb7..1c44457ae64ea 100644 --- a/src/plugins/saved_objects/public/saved_object/saved_object.test.ts +++ b/src/plugins/saved_objects/public/saved_object/saved_object.test.ts @@ -20,7 +20,7 @@ import { coreMock } from '../../../../core/public/mocks'; import { dataPluginMock, createSearchSourceMock } from '../../../../plugins/data/public/mocks'; import { getStubIndexPattern, StubIndexPattern } from '../../../../plugins/data/public/test_utils'; import { SavedObjectAttributes, SimpleSavedObject } from 'kibana/public'; -import { IIndexPattern } from '../../../data/common/index_patterns'; +import { IndexPattern } from '../../../data/common/index_patterns'; import { savedObjectsDecoratorRegistryMock } from './decorators/registry.mock'; const getConfig = (cfg: any) => cfg; @@ -733,7 +733,7 @@ describe('Saved Object', () => { type: 'dashboard', afterESResp: afterESRespCallback, searchSource: true, - indexPattern: { id: indexPatternId } as IIndexPattern, + indexPattern: { id: indexPatternId } as IndexPattern, }; stubESResponse( @@ -775,7 +775,7 @@ describe('Saved Object', () => { type: 'dashboard', afterESResp: afterESRespCallback, searchSource: false, - indexPattern: { id: indexPatternId } as IIndexPattern, + indexPattern: { id: indexPatternId } as IndexPattern, }; stubESResponse(getMockedDocResponse(indexPatternId)); diff --git a/src/plugins/saved_objects/public/types.ts b/src/plugins/saved_objects/public/types.ts index ca44c56319954..2c56943bc6f84 100644 --- a/src/plugins/saved_objects/public/types.ts +++ b/src/plugins/saved_objects/public/types.ts @@ -15,7 +15,7 @@ import { } from 'kibana/public'; import { DataPublicPluginStart, - IIndexPattern, + IndexPattern, IndexPatternsContract, ISearchSource, SearchSourceFields, @@ -34,7 +34,7 @@ export interface SavedObject { getDisplayName: () => string; getEsType: () => string; getFullPath: () => string; - hydrateIndexPattern?: (id?: string) => Promise; + hydrateIndexPattern?: (id?: string) => Promise; id?: string; init?: () => Promise; isSaving: boolean; @@ -82,7 +82,7 @@ export interface SavedObjectConfig { injectReferences?: (object: T, references: SavedObjectReference[]) => void; id?: string; init?: () => void; - indexPattern?: IIndexPattern; + indexPattern?: IndexPattern; mapping?: Record; migrationVersion?: Record; path?: string;