Skip to content

Commit

Permalink
chore: type mis (#356)
Browse files Browse the repository at this point in the history
* chore: type mis

* chore: compiler options target
  • Loading branch information
lvisei authored Jun 12, 2024
1 parent 5f48275 commit 70a69d4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions packages/l7plot/__tests__/helper/plot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { L7PlotOptions, PlotOptions } from '../../src/types';
import { createDiv } from './dom';

const mapConfig = {
type: 'mapbox',
token: 'pk.eyJ1IjoibGl1dmlnb25nenVvc2hpIiwiYSI6ImNrdW02cjU3ZjNvaHIyb3FsbGR2b2dja2MifQ.OLUdvRf2ZY3lhnJzBU9ToQ',
type: 'map',
};

export const createPlot = <T extends Plot<any>, U extends PlotOptions>(PlotClass: any, options: U): T => {
Expand Down
5 changes: 2 additions & 3 deletions packages/l7plot/src/types/map.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { Map as MapboxglMap } from 'mapbox-gl';
import type { Map, IStatusOptions, PositionName, ISourceCFG, MapStyle, Source } from '@antv/l7';
import type { IAMapInstance, IMapboxInstance } from '@antv/l7-maps/typings';
import type { TooltipOptions } from './tooltip';
import type { LegendOptions } from './legend';
import type { LayerMenuControlOptions, ScaleControlOptions, ZoomControlOptions } from './control';
Expand All @@ -10,8 +9,8 @@ export type { MapboxglMap, Source };

export type StatusOptions = IStatusOptions;
export type MapInstance = Map;
export type AMapInstance = AMap.Map & IAMapInstance;
export type MapboxInstance = MapboxglMap & IMapboxInstance;
export type AMapInstance = AMap.Map;
export type MapboxInstance = MapboxglMap;

/**
* 底图类型
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* Visit https://aka.ms/tsconfig.json to read more about this file */

/* Basic Options */
"target": "es5",
"target": "es6",
"module": "commonjs",
"lib": ["DOM", "ESNext", "WebWorker"],
"allowJs": false,
Expand Down

0 comments on commit 70a69d4

Please sign in to comment.