Skip to content

Commit

Permalink
Remove VisualizationsStart since it's not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal committed Apr 21, 2020
1 parent 2b66591 commit 46193d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ const pluginInstance = new TableVisPlugin({} as PluginInitializerContext);
export const setup = pluginInstance.setup(npSetup.core, plugins);
export const start = pluginInstance.start(npStart.core, {
data: npStart.plugins.data,
visualizations: npStart.plugins.visualizations,
});
5 changes: 2 additions & 3 deletions src/plugins/vis_type_table/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
import { PluginInitializerContext, CoreSetup, CoreStart, Plugin } from 'kibana/public';
import { Plugin as ExpressionsPublicPlugin } from '../../expressions/public';
import { VisualizationsSetup, VisualizationsStart } from '../../visualizations/public';
import { VisualizationsSetup } from '../../visualizations/public';

import { createTableVisFn } from './table_vis_fn';
import { getTableVisTypeDefinition } from './table_vis_type';
Expand All @@ -34,7 +34,6 @@ export interface TablePluginSetupDependencies {
/** @internal */
export interface TablePluginStartDependencies {
data: DataPublicPluginStart;
visualizations: VisualizationsStart;
}

/** @internal */
Expand All @@ -56,7 +55,7 @@ export class TableVisPlugin implements Plugin<Promise<void>, void> {
);
}

public start(core: CoreStart, { data, visualizations }: TablePluginStartDependencies) {
public start(core: CoreStart, { data }: TablePluginStartDependencies) {
setFormatService(data.fieldFormats);
}
}

0 comments on commit 46193d1

Please sign in to comment.