From 20315ef3ce13b712e2b404005fb38a56e6c1e2db Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Sun, 6 Sep 2026 13:47:07 +0200 Subject: [PATCH] refactor(google-maps): move types reference in maps package We need at least one `` present in the Google Maps package in order to ensure that the .d.ts we publish has a reference to the types, however internally they need to be stripped. These changes remove the reference that was randomly places in the clusterer types and will update the internal setup to drop the comment. --- MODULE.bazel.lock | 2 -- .../deprecated-marker-clusterer-types.ts | 2 -- src/google-maps/google-map/google-map.ts | 4 ++++ .../map-marker-clusterer/map-marker-clusterer-types.ts | 2 -- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index c71bdfe2ca83..00cd9ced0bea 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -53,7 +53,6 @@ "https://bcr.bazel.build/modules/bazel_lib/3.0.0/MODULE.bazel": "22b70b80ac89ad3f3772526cd9feee2fa412c2b01933fea7ed13238a448d370d", "https://bcr.bazel.build/modules/bazel_lib/3.2.0/MODULE.bazel": "39b50d94b9be6bda507862254e20c263f9b950e3160112348d10a938be9ce2c2", "https://bcr.bazel.build/modules/bazel_lib/3.7.0/MODULE.bazel": "d7c10ed67f0f7f1fda179db8f86c22642581bd614882e1a50545fbe069525173", - "https://bcr.bazel.build/modules/bazel_lib/3.7.1/MODULE.bazel": "b6fd9b2f8fab956420c11836f416efac4a70e20804ae384ebe62773a4ed70046", "https://bcr.bazel.build/modules/bazel_lib/3.7.2/MODULE.bazel": "cbc920fff00a55b2fd663d40850560a6fb17fd5ef3a9f3d6cbf0d32908dd8a40", "https://bcr.bazel.build/modules/bazel_lib/3.7.2/source.json": "7a9c2b06a113c4962d329bb68befdb90d0447788a19aabaa32b476a0458e7d28", "https://bcr.bazel.build/modules/bazel_skylib/1.0.3/MODULE.bazel": "bcb0fd896384802d1ad283b4e4eb4d718eebd8cb820b0a2c3a347fb971afd9d8", @@ -208,7 +207,6 @@ "https://bcr.bazel.build/modules/upb/0.0.0-20220923-a547704/MODULE.bazel": "7298990c00040a0e2f121f6c32544bab27d4452f80d9ce51349b1a28f3005c43", "https://bcr.bazel.build/modules/yq.bzl/0.1.1/MODULE.bazel": "9039681f9bcb8958ee2c87ffc74bdafba9f4369096a2b5634b88abc0eaefa072", "https://bcr.bazel.build/modules/yq.bzl/0.3.4/MODULE.bazel": "d3a270662f5d766cd7229732d65a5a5bc485240c3007343dd279edfb60c9ae27", - "https://bcr.bazel.build/modules/yq.bzl/0.3.6/MODULE.bazel": "985c2a0cb4ad9994bb0e33cc7fae931c91105eeefe3faa355b8f4c258d0607c0", "https://bcr.bazel.build/modules/yq.bzl/0.4.0/MODULE.bazel": "1e4b142e391b62c95eb637fc0e944c17f3ed5276cdc9d7033df72a2f96a2a457", "https://bcr.bazel.build/modules/yq.bzl/0.4.0/source.json": "e5a3b94fe7ab720818ac2d8150cb19b009daf48c69a72eaab9a4852efb75331d", "https://bcr.bazel.build/modules/zlib/1.2.11/MODULE.bazel": "07b389abc85fdbca459b69e2ec656ae5622873af3f845e1c9d80fe179f3effa0", diff --git a/src/google-maps/deprecated-map-marker-clusterer/deprecated-marker-clusterer-types.ts b/src/google-maps/deprecated-map-marker-clusterer/deprecated-marker-clusterer-types.ts index 1af086fb15d0..9e4cf32e1603 100644 --- a/src/google-maps/deprecated-map-marker-clusterer/deprecated-marker-clusterer-types.ts +++ b/src/google-maps/deprecated-map-marker-clusterer/deprecated-marker-clusterer-types.ts @@ -6,8 +6,6 @@ * found in the LICENSE file at https://angular.dev/license */ -/// - /** * Class for clustering markers on a Google Map. * diff --git a/src/google-maps/google-map/google-map.ts b/src/google-maps/google-map/google-map.ts index 55a197e40c67..e2e7386f3f2d 100644 --- a/src/google-maps/google-map/google-map.ts +++ b/src/google-maps/google-map/google-map.ts @@ -6,6 +6,10 @@ * found in the LICENSE file at https://angular.dev/license */ +// We need this to ensure that the type reference is present in the generated .d.ts +// that we publish to npm. Internally this is removed during import. +/// + import { Component, ElementRef, 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 23d5813ad8f3..45e3e108fc61 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 @@ -6,8 +6,6 @@ * found in the LICENSE file at https://angular.dev/license */ -/// - import {Marker} from '../marker-utilities'; // This file duplicates the necessary types from the `@googlemaps/markerclusterer`