Skip to content

Commit

Permalink
Add TS types
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Caldwell committed Mar 4, 2020
1 parent 8af0e07 commit 27b83a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x-pack/legacy/plugins/maps/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { Plugin, CoreStart } from 'src/core/public';
import { Plugin, CoreStart, CoreSetup } from 'src/core/public';
// @ts-ignore
import { wrapInI18nContext } from 'ui/i18n';
// @ts-ignore
Expand All @@ -31,16 +31,16 @@ interface MapsPluginSetupDependencies {
};
}

export const bindSetupCoreAndPlugins = (core, plugins) => {
export const bindSetupCoreAndPlugins = (core: CoreSetup, plugins: any) => {
const { licensing } = plugins;
if (licensing) {
licensing.license$.subscribe(({ uid }) => setLicenseId(uid));
licensing.license$.subscribe(({ uid }: { uid: string }) => setLicenseId(uid));
}
};

/** @internal */
export class MapsPlugin implements Plugin<MapsPluginSetup, MapsPluginStart> {
public setup(core: any, { __LEGACY: { uiModules }, np }: MapsPluginSetupDependencies) {
public setup(core: CoreSetup, { __LEGACY: { uiModules }, np }: MapsPluginSetupDependencies) {
uiModules
.get('app/maps', ['ngRoute', 'react'])
.directive('mapListing', function(reactDirective: any) {
Expand Down

0 comments on commit 27b83a7

Please sign in to comment.