Skip to content

Commit

Permalink
fix(window.AMap): 工具相关的 API 不存在 window.AMap.GeometryUtil 类型上
Browse files Browse the repository at this point in the history
AMap.GeometryUtil, AMap.Browser, AMap.Util, AMap.DomUtil 均存在同样的问题
  • Loading branch information
xyy94813 committed Apr 17, 2024
1 parent 39a14cf commit bd894e1
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,15 +345,20 @@ declare global {
type ToolBarConfig,

// 工具
type GeometryUtil,
type Browser,
type Util,
type DomUtil,
// type GeometryUtil,
// type Browser,
// type Util,
// type DomUtil,

// others
type SecurityConfig,
};

export const GeometryUtil: GeometryUtil;
export const Browser: Browser;
export const Util: Util;
export const DomUtil: DomUtil;

export const version: string;

/** 默认图层. NebulaLayer??? */
Expand Down

0 comments on commit bd894e1

Please sign in to comment.