Skip to content

Commit

Permalink
fix: 完善类型定义
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxingkang committed Nov 23, 2023
1 parent 410e9d5 commit ebfcb56
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/types/map/point-mark/MarkerCluster.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
declare namespace AMap {
namespace MarkerCluster {
interface ClickEvent<I = any> {
cluster: MarkerCluster,
lnglat: AMap.LngLat,
target: I,
markers: AMap.Marker[],
clusterData: any[];
}

interface EventMap<I = any> {
click: (data: { cluster: MarkerCluster, lnglat: AMap.LngLat,target: I, markers: AMap.Marker[]}) => void;
click: (data: ClickEvent<I>) => void;
}

interface Style {
Expand Down

0 comments on commit ebfcb56

Please sign in to comment.