diff --git a/packages/amap/src/marker-cluster/types.ts b/packages/amap/src/marker-cluster/types.ts index d58a711..d240d49 100644 --- a/packages/amap/src/marker-cluster/types.ts +++ b/packages/amap/src/marker-cluster/types.ts @@ -1,4 +1,4 @@ -export interface EventMap extends ReactAMap.GetEventFunObject { +export interface EventMap extends Partial { /** 创建事件 */ created?: (instance: AMap.MarkerCluster) => void; } diff --git a/packages/types/map/map/Map.d.ts b/packages/types/map/map/Map.d.ts index d29c7cc..62bcb1d 100644 --- a/packages/types/map/map/Map.d.ts +++ b/packages/types/map/map/Map.d.ts @@ -252,7 +252,7 @@ declare namespace AMap { /** * 额外配置的 WebGL 参数 */ - WebGLParams: { + WebGLParams?: { preserveDrawingBuffer?: boolean; [key: string]: any; };