Skip to content

Commit a73a70d

Browse files
committed
fix(google-maps): fix mismatch in clusterer types (#32778)
Fixes that the clusterer types seem to no longer match with the ones on npm, causing a type error. Fixes #32696. (cherry picked from commit 0870786)
1 parent d79279f commit a73a70d

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

goldens/google-maps/index.api.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ export type Calculator = (markers: google.maps.Marker[], clusterIconStylesCount:
5050

5151
// @public (undocumented)
5252
export interface Cluster {
53-
// (undocumented)
54-
new (options: ClusterOptions): Cluster;
5553
// (undocumented)
5654
bounds?: google.maps.LatLngBounds;
5755
// (undocumented)
@@ -61,7 +59,7 @@ export interface Cluster {
6159
// (undocumented)
6260
marker?: Marker;
6361
// (undocumented)
64-
readonly markers?: Marker[];
62+
markers?: Marker[];
6563
// (undocumented)
6664
position: google.maps.LatLng;
6765
// (undocumented)

src/google-maps/map-marker-clusterer/map-marker-clusterer-types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,12 @@ export interface ClusterOptions {
2222

2323
export interface Cluster {
2424
marker?: Marker;
25-
readonly markers?: Marker[];
25+
markers?: Marker[];
2626
bounds?: google.maps.LatLngBounds;
2727
position: google.maps.LatLng;
2828
count: number;
2929
push(marker: Marker): void;
3030
delete(): void;
31-
new (options: ClusterOptions): Cluster;
3231
}
3332

3433
export declare class MarkerClusterer extends google.maps.OverlayView {

0 commit comments

Comments
 (0)