Skip to content

Commit

Permalink
fix: 部分 overlay 范型不应必填
Browse files Browse the repository at this point in the history
  • Loading branch information
xyy94813 committed Mar 13, 2024
1 parent 2fc463b commit 9d2dac7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion types/overlays/ElasticMarker.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export type ElasticMarkerEventType = MarkerEventType;
* 验证后继成自 Marker
* https://lbs.amap.com/api/javascript-api-v2/documentation#elasticmarker
*/
export declare class ElasticMarker<ExtraData> extends Marker<ExtraData> {
export declare class ElasticMarker<ExtraData = any> extends Marker<ExtraData> {
constructor(opts?: ElasticMarkerOptions<ExtraData>);
}

Expand Down
2 changes: 1 addition & 1 deletion types/overlays/Text.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export type TextEventType = MarkerEventType;
* 验证后继成自 Marker
* https://lbs.amap.com/api/javascript-api-v2/documentation#text
*/
export declare class Text<ExtraData> extends Marker<ExtraData> {
export declare class Text<ExtraData = any> extends Marker<ExtraData> {
constructor(opts?: TextOptions<ExtraData>);
/**
* 获取文本内容
Expand Down

0 comments on commit 9d2dac7

Please sign in to comment.