77 */
88
99// Workaround for: https://github.com/bazelbuild/rules_nodejs/issues/1265
10- /// <reference types="googlemaps " />
10+ /// <reference types="google.maps " />
1111
1212import {
1313 ChangeDetectionStrategy ,
@@ -372,7 +372,7 @@ export class GoogleMap implements OnChanges, OnInit, OnDestroy {
372372 */
373373 getCenter ( ) : google . maps . LatLng {
374374 this . _assertInitialized ( ) ;
375- return this . googleMap . getCenter ( ) ;
375+ return this . googleMap . getCenter ( ) ! ;
376376 }
377377
378378 /**
@@ -381,7 +381,7 @@ export class GoogleMap implements OnChanges, OnInit, OnDestroy {
381381 */
382382 getClickableIcons ( ) : boolean {
383383 this . _assertInitialized ( ) ;
384- return this . googleMap . getClickableIcons ( ) ;
384+ return this . googleMap . getClickableIcons ( ) ! ;
385385 }
386386
387387 /**
@@ -390,7 +390,7 @@ export class GoogleMap implements OnChanges, OnInit, OnDestroy {
390390 */
391391 getHeading ( ) : number {
392392 this . _assertInitialized ( ) ;
393- return this . googleMap . getHeading ( ) ;
393+ return this . googleMap . getHeading ( ) ! ;
394394 }
395395
396396 /**
@@ -399,7 +399,7 @@ export class GoogleMap implements OnChanges, OnInit, OnDestroy {
399399 */
400400 getMapTypeId ( ) : google . maps . MapTypeId | string {
401401 this . _assertInitialized ( ) ;
402- return this . googleMap . getMapTypeId ( ) ;
402+ return this . googleMap . getMapTypeId ( ) ! ;
403403 }
404404
405405 /**
@@ -408,7 +408,7 @@ export class GoogleMap implements OnChanges, OnInit, OnDestroy {
408408 */
409409 getProjection ( ) : google . maps . Projection | null {
410410 this . _assertInitialized ( ) ;
411- return this . googleMap . getProjection ( ) ;
411+ return this . googleMap . getProjection ( ) || null ;
412412 }
413413
414414 /**
@@ -426,7 +426,7 @@ export class GoogleMap implements OnChanges, OnInit, OnDestroy {
426426 */
427427 getTilt ( ) : number {
428428 this . _assertInitialized ( ) ;
429- return this . googleMap . getTilt ( ) ;
429+ return this . googleMap . getTilt ( ) ! ;
430430 }
431431
432432 /**
@@ -435,7 +435,7 @@ export class GoogleMap implements OnChanges, OnInit, OnDestroy {
435435 */
436436 getZoom ( ) : number {
437437 this . _assertInitialized ( ) ;
438- return this . googleMap . getZoom ( ) ;
438+ return this . googleMap . getZoom ( ) ! ;
439439 }
440440
441441 /**
0 commit comments