Skip to content

Commit 29e7617

Browse files
committed
fix(google-maps): fix type errors caused by @types/google.maps update
1 parent 1dbf7d1 commit 29e7617

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/google-maps/map-directions-renderer/map-directions-service.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ export class MapDirectionsService {
3838
this._getService().then(service => {
3939
service.route(request, (result, status) => {
4040
this._ngZone.run(() => {
41-
observer.next({result: result || undefined, status});
41+
observer.next({
42+
result: result || undefined,
43+
status: status as google.maps.DirectionsStatus,
44+
});
4245
observer.complete();
4346
});
4447
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class MapGeocoder {
3434
this._getGeocoder().then(geocoder => {
3535
geocoder.geocode(request, (results, status) => {
3636
this._ngZone.run(() => {
37-
observer.next({results: results || [], status});
37+
observer.next({results: results || [], status: status as google.maps.GeocoderStatus});
3838
observer.complete();
3939
});
4040
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export class MapKmlLayer implements OnInit, OnDestroy {
152152
*/
153153
getStatus(): google.maps.KmlLayerStatus {
154154
this._assertInitialized();
155-
return this.kmlLayer.getStatus();
155+
return this.kmlLayer.getStatus() as google.maps.KmlLayerStatus;
156156
}
157157

158158
/**

0 commit comments

Comments
 (0)