Skip to content

Commit e4901df

Browse files
authored
fix(google-maps): update to latest typings (#26854)
Updates the Google Maps package to use the latest version of the typings.
1 parent a9b6135 commit e4901df

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"@angular/core": "^16.0.0-next.2",
6363
"@angular/forms": "^16.0.0-next.2",
6464
"@angular/platform-browser": "^16.0.0-next.2",
65-
"@types/google.maps": "^3.47.3",
65+
"@types/google.maps": "^3.52.4",
6666
"@types/youtube": "^0.0.46",
6767
"rxjs": "^6.6.7",
6868
"rxjs-tslint-rules": "^4.34.8",

src/google-maps/google-map/google-map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ export class GoogleMap implements OnChanges, OnInit, OnDestroy {
476476
* See
477477
* https://developers.google.com/maps/documentation/javascript/reference/map#Map.overlayMapTypes
478478
*/
479-
get overlayMapTypes(): google.maps.MVCArray<google.maps.MapType> {
479+
get overlayMapTypes(): google.maps.MVCArray<google.maps.MapType | null> {
480480
this._assertInitialized();
481481
return this.googleMap.overlayMapTypes;
482482
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ export class MapMarker implements OnInit, OnChanges, OnDestroy, MapAnchorPoint {
375375
* See
376376
* developers.google.com/maps/documentation/javascript/reference/marker#Marker.getLabel
377377
*/
378-
getLabel(): google.maps.MarkerLabel | null {
378+
getLabel(): google.maps.MarkerLabel | string | null {
379379
this._assertInitialized();
380380
return this.marker.getLabel() || null;
381381
}

src/google-maps/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"homepage": "https://github.com/angular/components/tree/main/src/google-maps#readme",
1919
"dependencies": {
20-
"@types/google.maps": "^3.45.6",
20+
"@types/google.maps": "^3.52.4",
2121
"tslib": "0.0.0-TSLIB"
2222
},
2323
"peerDependencies": {

tools/public_api_guard/google-maps/google-maps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class GoogleMap implements OnChanges, OnInit, OnDestroy {
102102
ngOnInit(): void;
103103
// (undocumented)
104104
set options(options: google.maps.MapOptions);
105-
get overlayMapTypes(): google.maps.MVCArray<google.maps.MapType>;
105+
get overlayMapTypes(): google.maps.MVCArray<google.maps.MapType | null>;
106106
panBy(x: number, y: number): void;
107107
panTo(latLng: google.maps.LatLng | google.maps.LatLngLiteral): void;
108108
panToBounds(latLngBounds: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral, padding?: number | google.maps.Padding): void;
@@ -412,7 +412,7 @@ export class MapMarker implements OnInit, OnChanges, OnDestroy, MapAnchorPoint {
412412
getCursor(): string | null;
413413
getDraggable(): boolean;
414414
getIcon(): string | google.maps.Icon | google.maps.Symbol | null;
415-
getLabel(): google.maps.MarkerLabel | null;
415+
getLabel(): google.maps.MarkerLabel | string | null;
416416
getOpacity(): number | null;
417417
getPosition(): google.maps.LatLng | null;
418418
getShape(): google.maps.MarkerShape | null;

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4044,10 +4044,10 @@
40444044
"@types/minimatch" "*"
40454045
"@types/node" "*"
40464046

4047-
"@types/google.maps@^3.47.3":
4048-
version "3.48.6"
4049-
resolved "https://registry.yarnpkg.com/@types/google.maps/-/google.maps-3.48.6.tgz#5125eb8257beb031b547acb5a690c24c3cabbf59"
4050-
integrity sha512-ZSx2J50Q9qyHhYVO4UdTvt5sHILzenSCiMbr7bjYNCMBkW/sagHMEDPI3Vjlr9i2tlMHIGoLk6DthWJnqFun/A==
4047+
"@types/google.maps@^3.52.4":
4048+
version "3.52.4"
4049+
resolved "https://registry.yarnpkg.com/@types/google.maps/-/google.maps-3.52.4.tgz#01d640d7c49f153570b22fe337a35aea7ac41eb9"
4050+
integrity sha512-FXtZsLDX7fbxJ03zbze3MdUjaH4Y/zRmW8O65LNIWEHJ7RqddrabusRm/U3zF1ifmqe8y4oPqBvs+vBG8kv0yQ==
40514051

40524052
"@types/http-cache-semantics@*":
40534053
version "4.0.1"

0 commit comments

Comments
 (0)