Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal committed May 14, 2020
1 parent ca7915a commit 8d4b8c2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 19 deletions.
4 changes: 1 addition & 3 deletions src/plugins/discover/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
11 changes: 1 addition & 10 deletions src/plugins/discover/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,19 @@
* 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<object, object> {
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);

return {};
}

public start(core: CoreStart) {
this.logger.debug('discover: Started');
return {};
}

Expand Down
4 changes: 1 addition & 3 deletions src/plugins/saved_objects/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
4 changes: 1 addition & 3 deletions src/plugins/vis_type_vislib/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

0 comments on commit 8d4b8c2

Please sign in to comment.