From 8d4b8c2a7c8b700918932796a22ae30125079bf2 Mon Sep 17 00:00:00 2001 From: Matthias Wilhelm Date: Thu, 14 May 2020 11:20:08 +0200 Subject: [PATCH] Fix types --- src/plugins/discover/server/index.ts | 4 +--- src/plugins/discover/server/plugin.ts | 11 +---------- src/plugins/saved_objects/server/index.ts | 4 +--- src/plugins/vis_type_vislib/server/index.ts | 4 +--- 4 files changed, 4 insertions(+), 19 deletions(-) diff --git a/src/plugins/discover/server/index.ts b/src/plugins/discover/server/index.ts index 15a948c56148e..20ccc8b182078 100644 --- a/src/plugins/discover/server/index.ts +++ b/src/plugins/discover/server/index.ts @@ -17,8 +17,6 @@ * under the License. */ -import { PluginInitializerContext } from 'kibana/server'; import { DiscoverServerPlugin } from './plugin'; -export const plugin = (initContext: PluginInitializerContext) => - new DiscoverServerPlugin(initContext); +export const plugin = () => new DiscoverServerPlugin(); diff --git a/src/plugins/discover/server/plugin.ts b/src/plugins/discover/server/plugin.ts index 3241597e49d17..a7445a5189163 100644 --- a/src/plugins/discover/server/plugin.ts +++ b/src/plugins/discover/server/plugin.ts @@ -17,20 +17,12 @@ * under the License. */ -import { PluginInitializerContext, CoreSetup, CoreStart, Plugin, Logger } from 'kibana/server'; +import { CoreSetup, CoreStart, Plugin } from 'kibana/server'; import { uiSettings } from './ui_settings'; import { capabilitiesProvider } from './capabilities_provider'; export class DiscoverServerPlugin implements Plugin { - private readonly logger: Logger; - - constructor(initializerContext: PluginInitializerContext) { - this.logger = initializerContext.logger.get(); - } - public setup(core: CoreSetup) { - this.logger.debug('discover: Setup'); - core.capabilities.registerProvider(capabilitiesProvider); core.uiSettings.register(uiSettings); @@ -38,7 +30,6 @@ export class DiscoverServerPlugin implements Plugin { } public start(core: CoreStart) { - this.logger.debug('discover: Started'); return {}; } diff --git a/src/plugins/saved_objects/server/index.ts b/src/plugins/saved_objects/server/index.ts index 943a3a79fcde4..4e72bfef0637e 100644 --- a/src/plugins/saved_objects/server/index.ts +++ b/src/plugins/saved_objects/server/index.ts @@ -17,8 +17,6 @@ * under the License. */ -import { PluginInitializerContext } from 'kibana/server'; import { SavedObjectsServerPlugin } from './plugin'; -export const plugin = (initContext: PluginInitializerContext) => - new SavedObjectsServerPlugin(initContext); +export const plugin = () => new SavedObjectsServerPlugin(); diff --git a/src/plugins/vis_type_vislib/server/index.ts b/src/plugins/vis_type_vislib/server/index.ts index 6524f42764e41..c201dd3ddc49a 100644 --- a/src/plugins/vis_type_vislib/server/index.ts +++ b/src/plugins/vis_type_vislib/server/index.ts @@ -17,11 +17,9 @@ * under the License. */ import { schema } from '@kbn/config-schema'; -import { PluginInitializerContext } from 'kibana/server'; import { VisTypeVislibServerPlugin } from './plugin'; export const config = { schema: schema.object({ enabled: schema.boolean({ defaultValue: true }) }), }; -export const plugin = (initContext: PluginInitializerContext) => - new VisTypeVislibServerPlugin(initContext); +export const plugin = () => new VisTypeVislibServerPlugin();