title: how to fix "then" in geolocation
body: <p>"Property 'then' does not exist on type 'void'.ts(2339)"</p>
  
  <pre><code>initMap(): Promise&lt;any&gt; {
  
      this.mapInitialised = true;
  
      return new Promise((resolve) =&gt; {
  
        Geolocation.getCurrentPosition().then((position) =&gt; {
  
          // UNCOMMENT FOR NORMAL USE
          //let latLng = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);
  
          let latLng = new google.maps.LatLng(40.713744, -74.009056);
  
          let mapOptions = {
            center: latLng,
            zoom: 15,
            mapTypeId: google.maps.MapTypeId.ROADMAP
          }
  
          this.map = new google.maps.Map(this.mapElement, mapOptions);
          resolve(true);
  
        });
  
      });
  
    }
  </code></pre>
  
  <p>"what can use to replace then "</p>