Skip to content

Commit

Permalink
use IndexPattern instead of IIndexPattern (elastic#107193)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime authored and kibanamachine committed Jul 30, 2021
1 parent 4fe7b36 commit 838f399
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 { Subscription } from 'rxjs';
import { i18n } from '@kbn/i18n';
import { VISUALIZE_EMBEDDABLE_TYPE } from './constants';
import {
IIndexPattern,
IndexPattern,
TimeRange,
Query,
esFilters,
Expand Down Expand Up @@ -47,7 +47,7 @@ const getKeys = <T extends {}>(o: T): Array<keyof T> => Object.keys(o) as Array<

export interface VisualizeEmbeddableConfiguration {
vis: Vis;
indexPatterns?: IIndexPattern[];
indexPatterns?: IndexPattern[];
editPath: string;
editUrl: string;
capabilities: { visualizeSave: boolean; dashboardSave: boolean };
Expand All @@ -69,7 +69,7 @@ export interface VisualizeOutput extends EmbeddableOutput {
editPath: string;
editApp: string;
editUrl: string;
indexPatterns?: IIndexPattern[];
indexPatterns?: IndexPattern[];
visTypeName: string;
}

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/visualizations/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export class VisualizationsPlugin
showNewVisModal,
/**
* creates new instance of Vis
* @param {IIndexPattern} indexPattern - index pattern to use
* @param {IndexPattern} indexPattern - index pattern to use
* @param {VisState} visState - visualization configuration
*/
createVis: async (visType: string, visState: SerializedVis) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { updateOldState } from '../legacy/vis_update_state';
import { extractReferences, injectReferences } from './saved_visualization_references';
import { createSavedSearchesLoader } from '../../../discover/public';
import type { SavedObjectsClientContract } from '../../../../core/public';
import type { IIndexPattern, IndexPatternsContract } from '../../../../plugins/data/public';
import type { IndexPatternsContract } from '../../../../plugins/data/public';
import type { ISavedVis, SerializedVis } from '../types';

export interface SavedVisServices {
Expand Down Expand Up @@ -93,7 +93,7 @@ export function createSavedVisClass(services: SavedVisServices) {
extractReferences,
injectReferences,
id: (opts.id as string) || '',
indexPattern: opts.indexPattern as IIndexPattern,
indexPattern: opts.indexPattern,
defaults: {
title: '',
visState,
Expand Down

0 comments on commit 838f399

Please sign in to comment.