Skip to content

Commit

Permalink
remove unecessary declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed Aug 18, 2020
1 parent 33777d0 commit 51bf61b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 28 deletions.
14 changes: 2 additions & 12 deletions src/plugins/visualize/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import {
} from '../../kibana_utils/public';
import { DataPublicPluginStart, DataPublicPluginSetup, esFilters } from '../../data/public';
import { NavigationPublicPluginStart as NavigationStart } from '../../navigation/public';
import { SharePluginStart, SharePluginSetup, UrlGeneratorState } from '../../share/public';
import { SharePluginStart, SharePluginSetup } from '../../share/public';
import { KibanaLegacySetup, KibanaLegacyStart } from '../../kibana_legacy/public';
import { VisualizationsStart } from '../../visualizations/public';
import { VisualizeConstants } from './application/visualize_constants';
Expand All @@ -57,11 +57,7 @@ import {
setShareService,
} from './services';
import { visualizeFieldAction } from './actions/visualize_field_action';
import {
VisualizeUrlGeneratorState,
VISUALIZE_APP_URL_GENERATOR,
createVisualizeUrlGenerator,
} from './url_generator';
import { createVisualizeUrlGenerator } from './url_generator';

export interface VisualizePluginStartDependencies {
data: DataPublicPluginStart;
Expand All @@ -81,12 +77,6 @@ export interface VisualizePluginSetupDependencies {
share?: SharePluginSetup;
}

declare module '../../share/public' {
export interface UrlGeneratorStateMapping {
[VISUALIZE_APP_URL_GENERATOR]: UrlGeneratorState<VisualizeUrlGeneratorState>;
}
}

export interface FeatureFlagConfig {
showNewVisualizeFlow: boolean;
}
Expand Down
18 changes: 2 additions & 16 deletions x-pack/plugins/maps/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ import { HomePublicPluginSetup } from '../../../../src/plugins/home/public';
import { VisualizationsSetup } from '../../../../src/plugins/visualizations/public';
import { APP_ICON, APP_ID, MAP_SAVED_OBJECT_TYPE } from '../common/constants';
import { VISUALIZE_GEO_FIELD_TRIGGER } from '../../../../src/plugins/ui_actions/public';
import {
MapsUrlGeneratorState,
MAPS_APP_URL_GENERATOR,
createMapsUrlGenerator,
} from './url_generator';
import { createMapsUrlGenerator } from './url_generator';
import { visualizeGeoFieldAction } from './trigger_actions/visualize_geo_field_action';
import { MapEmbeddableFactory } from './embeddable/map_embeddable_factory';
import { EmbeddableSetup } from '../../../../src/plugins/embeddable/public';
Expand All @@ -48,11 +44,7 @@ import { ILicense } from '../../licensing/common/types';
import { lazyLoadMapModules } from './lazy_load_bundle';
import { MapsStartApi } from './api';
import { createSecurityLayerDescriptors, registerLayerWizard, registerSource } from './api';
import {
SharePluginSetup,
UrlGeneratorState,
SharePluginStart,
} from '../../../../src/plugins/share/public';
import { SharePluginSetup, SharePluginStart } from '../../../../src/plugins/share/public';
import { EmbeddableStart } from '../../../../src/plugins/embeddable/public';
import { MapsLegacyConfigType } from '../../../../src/plugins/maps_legacy/public';
import { DataPublicPluginStart } from '../../../../src/plugins/data/public';
Expand All @@ -79,12 +71,6 @@ export interface MapsPluginStartDependencies {
share: SharePluginStart;
}

declare module '../../../../src/plugins/share/public' {
export interface UrlGeneratorStateMapping {
[MAPS_APP_URL_GENERATOR]: UrlGeneratorState<MapsUrlGeneratorState>;
}
}

/**
* These are the interfaces with your public contracts. You should export these
* for other plugins to use in _their_ `SetupDeps`/`StartDeps` interfaces.
Expand Down

0 comments on commit 51bf61b

Please sign in to comment.