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 3ef8b1d commit 04d3803
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 0 additions & 2 deletions x-pack/plugins/global_search_providers/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ import { GlobalSearchProvidersPlugin, GlobalSearchProvidersPluginSetupDeps } fro

export const plugin: PluginInitializer<{}, {}, GlobalSearchProvidersPluginSetupDeps, {}> = () =>
new GlobalSearchProvidersPlugin();

export { GlobalSearchProvidersPluginSetup, GlobalSearchProvidersPluginStart };
9 changes: 3 additions & 6 deletions x-pack/plugins/global_search_providers/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

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

export interface GlobalSearchProvidersPluginSetupDeps {
Expand All @@ -16,17 +15,15 @@ export interface GlobalSearchProvidersPluginSetupDeps {
export class GlobalSearchProvidersPlugin
implements Plugin<{}, {}, GlobalSearchProvidersPluginSetupDeps, {}> {
setup(
{
getStartServices,
}: CoreSetup<GlobalSearchProvidersPluginStartDeps, GlobalSearchProvidersPluginStart>,
{ getStartServices }: CoreSetup<{}, {}>,
{ globalSearch }: GlobalSearchProvidersPluginSetupDeps
): GlobalSearchProvidersPluginSetup {
) {
const applicationPromise = getStartServices().then(([core]) => core.application);
globalSearch.registerResultProvider(createApplicationResultProvider(applicationPromise));
return {};
}

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

0 comments on commit 04d3803

Please sign in to comment.