From 0e2f9e63640845d91a8013c3ab81e97f10d4199b Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Mon, 16 Feb 2026 15:13:06 +0100 Subject: [PATCH] fix(google-maps): fix mismatch in clusterer types Fixes that the clusterer types seem to no longer match with the ones on npm, causing a type error. Fixes #32696. --- goldens/google-maps/index.api.md | 4 +--- .../map-marker-clusterer/map-marker-clusterer-types.ts | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/goldens/google-maps/index.api.md b/goldens/google-maps/index.api.md index c3e4bc5028a3..21729fea202c 100644 --- a/goldens/google-maps/index.api.md +++ b/goldens/google-maps/index.api.md @@ -50,8 +50,6 @@ export type Calculator = (markers: google.maps.Marker[], clusterIconStylesCount: // @public (undocumented) export interface Cluster { - // (undocumented) - new (options: ClusterOptions): Cluster; // (undocumented) bounds?: google.maps.LatLngBounds; // (undocumented) @@ -61,7 +59,7 @@ export interface Cluster { // (undocumented) marker?: Marker; // (undocumented) - readonly markers?: Marker[]; + markers?: Marker[]; // (undocumented) position: google.maps.LatLng; // (undocumented) diff --git a/src/google-maps/map-marker-clusterer/map-marker-clusterer-types.ts b/src/google-maps/map-marker-clusterer/map-marker-clusterer-types.ts index 0401167bb7be..23d5813ad8f3 100644 --- a/src/google-maps/map-marker-clusterer/map-marker-clusterer-types.ts +++ b/src/google-maps/map-marker-clusterer/map-marker-clusterer-types.ts @@ -22,13 +22,12 @@ export interface ClusterOptions { export interface Cluster { marker?: Marker; - readonly markers?: Marker[]; + markers?: Marker[]; bounds?: google.maps.LatLngBounds; position: google.maps.LatLng; count: number; push(marker: Marker): void; delete(): void; - new (options: ClusterOptions): Cluster; } export declare class MarkerClusterer extends google.maps.OverlayView {