Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Jun 23, 2020
1 parent adb832c commit eb7916f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions x-pack/plugins/global_search_providers/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import { CoreSetup, Plugin } from 'src/core/server';
import { GlobalSearchPluginSetup } from '../../global_search/server';
import { GlobalSearchProvidersPluginSetup, GlobalSearchProvidersPluginStart } from './types';
import { createSavedObjectsResultProvider } from './providers';

export interface GlobalSearchProvidersPluginSetupDeps {
Expand All @@ -16,16 +15,14 @@ export interface GlobalSearchProvidersPluginSetupDeps {
export class GlobalSearchProvidersPlugin
implements Plugin<{}, {}, GlobalSearchProvidersPluginSetupDeps, {}> {
setup(
{
getStartServices,
}: CoreSetup<GlobalSearchProvidersPluginStartDeps, GlobalSearchProvidersPluginStart>,
{ getStartServices }: CoreSetup<{}, {}>,
{ globalSearch }: GlobalSearchProvidersPluginSetupDeps
): GlobalSearchProvidersPluginSetup {
) {
globalSearch.registerResultProvider(createSavedObjectsResultProvider());
return {};
}

start(): GlobalSearchProvidersPluginStart {
start() {
return {};
}
}

0 comments on commit eb7916f

Please sign in to comment.