Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal committed Mar 27, 2020
1 parent 75552dc commit f3a230d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ import {
KBN_FIELD_TYPES,
} from '../../../../../../../../../plugins/data/public';
import { AppState } from '../../../angular/discover_state';
import { VisualizationsStart } from '../../../../../../../visualizations/public/np_ready/public';
import { DiscoverServices } from '../../../../build_services';
import {
VisualizationsStart,
VisTypeAlias,
} from '../../../../../../../../../plugins/visualizations/public';

function getMapsAppBaseUrl(visualizations: VisualizationsStart) {
const mapsAppVisAlias = visualizations.getAliases().find(({ name }) => {
Expand All @@ -37,7 +40,7 @@ function getMapsAppBaseUrl(visualizations: VisualizationsStart) {
}

export function isMapsAppRegistered(visualizations: VisualizationsStart) {
return visualizations.getAliases().some(({ name }) => {
return visualizations.getAliases().some(({ name }: VisTypeAlias) => {
return name === 'maps';
});
}
Expand Down

0 comments on commit f3a230d

Please sign in to comment.