From 0c7ea7db6497577c7e7a69ab28e2460ca2b7c508 Mon Sep 17 00:00:00 2001 From: Kapil Sachdeva Date: Tue, 3 Nov 2015 18:18:43 -0600 Subject: [PATCH] provide the explicit types in geolocation-tests to make the build happy --- ng-cordova/geolocation-tests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ng-cordova/geolocation-tests.ts b/ng-cordova/geolocation-tests.ts index 59e7807da8..731280de7c 100644 --- a/ng-cordova/geolocation-tests.ts +++ b/ng-cordova/geolocation-tests.ts @@ -22,12 +22,12 @@ namespace demo.geolocation { this.$cordovaGeolocation .getCurrentPosition({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; });