mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-05 12:20:07 +08:00
provide the explicit types in geolocation-tests to make the build happy
This commit is contained in:
1 parent
c8bd043d9e
commit
0c7ea7db64
1 file changed
+2
-2
@@ -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;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user