provide the explicit types in geolocation-tests to make the build happy

This commit is contained in:
Kapil Sachdeva
2015-11-03 18:18:43 -06:00
parent c8bd043d9e
commit 0c7ea7db64
+2 -2
View File
@@ -22,12 +22,12 @@ namespace demo.geolocation {
this.$cordovaGeolocation
.getCurrentPosition(<ngCordova.IGeolocationOptions>{timeout: 10000, enableHighAccuracy: false})
.then((position) => {
.then((position:ngCordova.IGeoPosition) => {
console.log("position found");
this.position = position;
// long = position.coords.longitude
// lat = position.coords.latitude
}, (err) => {
}, (err:ngCordova.IGeoPositionError) => {
console.log("unable to find location");
this.errorMsg = "Error : " + err.message;
});