Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: type mis #356

Merged
merged 2 commits into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading