Skip to content

Commit

Permalink
Review feedback. TS updates and clarifying comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Caldwell committed May 20, 2020
1 parent 6a54a1f commit db5a3a2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion x-pack/plugins/maps/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
import { PluginInitializer } from 'kibana/public';
import { PluginInitializerContext } from 'kibana/public';
import { MapsPlugin, MapsPluginSetup, MapsPluginStart } from './plugin';
import { MapsXPackConfig } from '../config';

// @ts-ignore
export const plugin: PluginInitializer<MapsPluginSetup, MapsPluginStart> = (
initContext: PluginInitializerContext
initContext: PluginInitializerContext<MapsXPackConfig>
) => {
// @ts-ignore
return new MapsPlugin(initContext);
Expand Down
11 changes: 6 additions & 5 deletions x-pack/plugins/maps/public/kibana_services.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/
import { IIndexPattern, DataPublicPluginStart } from 'src/plugins/data/public';
import { MapsConfigType } from '../config';
import { MapsLegacyConfigType } from '../../../../src/plugins/maps_legacy/public';

export function getLicenseId(): any;
export function getInspector(): any;
Expand All @@ -30,7 +31,7 @@ export function getCore(): any;
export function getNavigation(): any;
export function getCoreI18n(): any;
export function getSearchService(): DataPublicPluginStart['search'];
export function getKibanaCommonConfig(): any;
export function getKibanaCommonConfig(): MapsLegacyConfigType;
export function getMapAppConfig(): MapsConfigType;
export function getIsEmsEnabled(): any;
export function getEmsFontLibraryUrl(): any;
Expand All @@ -40,7 +41,7 @@ export function getEmsTileApiUrl(): any;
export function getEmsLandingPageUrl(): any;
export function getRegionmapLayers(): any;
export function getTilemap(): any;
export function getKibanaVersion(): any;
export function getKibanaVersion(): string;
export function getEnabled(): boolean;
export function getShowMapVisualizationTypes(): boolean;
export function getShowMapsInspectorAdapter(): boolean;
Expand Down Expand Up @@ -70,6 +71,6 @@ export function setCore(args: unknown): void;
export function setNavigation(args: unknown): void;
export function setCoreI18n(args: unknown): void;
export function setSearchService(args: DataPublicPluginStart['search']): void;
export function setKibanaCommonConfig(args: unknown): void;
export function setMapAppConfig(args: MapsConfigType): void;
export function setKibanaVersion(args: unknown): void;
export function setKibanaCommonConfig(config: MapsLegacyConfigType): void;
export function setMapAppConfig(config: MapsConfigType): void;
export function setKibanaVersion(version: string): void;
2 changes: 2 additions & 0 deletions x-pack/plugins/maps/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { MapsPlugin } from './plugin';
import { configSchema, MapsXPackConfig } from '../config';

export const config: PluginConfigDescriptor<MapsXPackConfig> = {
// exposeToBrowser specifies kibana.yml settings to expose to the browser
// the value `true` in this context signals configuration is exposed to browser
exposeToBrowser: {
enabled: true,
showMapVisualizationTypes: true,
Expand Down

0 comments on commit db5a3a2

Please sign in to comment.