Skip to content

Commit

Permalink
relax type-check
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck committed Feb 26, 2020
1 parent 0fb3a68 commit 391f11c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 1 addition & 2 deletions x-pack/legacy/plugins/maps/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* you may not use this file except in compliance with the Elastic License.
*/
import { i18n } from '@kbn/i18n';
import { EMSXYZSourceType } from './descriptor_types';
export const EMS_CATALOGUE_PATH = 'ems/catalogue';

export const EMS_FILES_CATALOGUE_PATH = 'ems/files';
Expand Down Expand Up @@ -54,7 +53,7 @@ export const EMS_FILE = 'EMS_FILE';
export const ES_GEO_GRID = 'ES_GEO_GRID';
export const ES_SEARCH = 'ES_SEARCH';
export const ES_PEW_PEW = 'ES_PEW_PEW';
export const EMS_XYZ: EMSXYZSourceType = 'EMS_XYZ';
export const EMS_XYZ = 'EMS_XYZ'; // identifies a custom TMS source. Name is a little unfortunate.

export const FIELD_ORIGIN = {
SOURCE: 'source',
Expand Down
6 changes: 1 addition & 5 deletions x-pack/legacy/plugins/maps/common/descriptor_types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,13 @@
* you may not use this file except in compliance with the Elastic License.
*/

export type EMSXYZSourceType = 'EMS_XYZ';
export type SourceType = EMSXYZSourceType | string;

export interface ISourceDescriptor {
id: string;
type: SourceType;
type: string;
}

export interface IXYZTMSSourceDescriptor extends ISourceDescriptor {
urlTemplate: string;
type: EMSXYZSourceType;
}

export interface ILayerDescriptor {
Expand Down

0 comments on commit 391f11c

Please sign in to comment.