Skip to content

Commit 4e7a9fb

Browse files
committed
fix(google-maps): fix type errors caused by @types/google.maps update
1 parent 8882059 commit 4e7a9fb

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
@@ -35,7 +35,10 @@ export class MapDirectionsService {
3535
this._getService().then(service => {
3636
service.route(request, (result, status) => {
3737
this._ngZone.run(() => {
38-
observer.next({result: result || undefined, status});
38+
observer.next({
39+
result: result || undefined,
40+
status: status as google.maps.DirectionsStatus,
41+
});
3942
observer.complete();
4043
});
4144
});

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

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

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

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

155155
/**

0 commit comments

Comments
 (0)