diff --git a/types/googlemaps/googlemaps-tests.ts b/types/googlemaps/googlemaps-tests.ts index b6fce2c906..427187c357 100644 --- a/types/googlemaps/googlemaps-tests.ts +++ b/types/googlemaps/googlemaps-tests.ts @@ -97,6 +97,8 @@ map.panToBounds( } ); +map.getProjection() // $ExpectType Projection | null + /***** Data *****/ new google.maps.Data(); diff --git a/types/googlemaps/index.d.ts b/types/googlemaps/index.d.ts index 0b2af2fc1c..a26ad3d639 100644 --- a/types/googlemaps/index.d.ts +++ b/types/googlemaps/index.d.ts @@ -51,7 +51,7 @@ declare namespace google.maps { getDiv(): Element; getHeading(): number; getMapTypeId(): MapTypeId | string; - getProjection(): Projection; + getProjection(): Projection | null; getStreetView(): StreetViewPanorama; getTilt(): number; getZoom(): number;