[Maps] Cleanup typing (#99136)

This commit is contained in:
Thomas Neirynck 2021-05-04 17:12:34 -04:00 committed by GitHub
parent f2693edddc
commit 1c8cb285c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 6 deletions

View file

@ -6,4 +6,5 @@
*/
export * from './map_embeddable';
export * from './types';
export * from './map_embeddable_factory';

View file

@ -78,7 +78,6 @@ import {
MapEmbeddableInput,
MapEmbeddableOutput,
} from './types';
export { MapEmbeddableInput, MapEmbeddableOutput };
function getIsRestore(searchSessionId?: string) {
if (!searchSessionId) {

View file

@ -23,4 +23,6 @@ export type { RenderTooltipContentParams } from './classes/tooltips/tooltip_prop
export { MapsStartApi } from './api';
export type { MapEmbeddable, MapEmbeddableInput } from './embeddable';
export type { MapEmbeddable, MapEmbeddableInput, MapEmbeddableOutput } from './embeddable';
export type { EMSTermJoinConfig, SampleValuesConfig } from './ems_autosuggest';

View file

@ -10,13 +10,14 @@ import React, { useEffect, useRef, useState } from 'react';
import { htmlIdGenerator } from '@elastic/eui';
import { LayerDescriptor } from '../../../../../maps/common/descriptor_types';
import { INITIAL_LOCATION } from '../../../../../maps/common/constants';
import {
import type {
MapEmbeddable,
MapEmbeddableInput,
MapEmbeddableOutput,
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
} from '../../../../../maps/public/embeddable';
import { MAP_SAVED_OBJECT_TYPE, RenderTooltipContentParams } from '../../../../../maps/public';
RenderTooltipContentParams,
} from '../../../../../maps/public';
import { MAP_SAVED_OBJECT_TYPE } from '../../../../../maps/public';
import {
EmbeddableFactory,
ErrorEmbeddable,