From 427611d109a9d6dcc2cf265e48ea0bdcc98e1739 Mon Sep 17 00:00:00 2001 From: Basit Date: Fri, 26 Feb 2016 13:09:53 +0000 Subject: [PATCH] options are optional --- src/plugins/geolocation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/geolocation.ts b/src/plugins/geolocation.ts index 9b7dc1032..f4c23548f 100644 --- a/src/plugins/geolocation.ts +++ b/src/plugins/geolocation.ts @@ -127,7 +127,7 @@ export class Geolocation { * @return Returns a Promise that resolves with the [position](https://developer.mozilla.org/en-US/docs/Web/API/Position) of the device, or rejects with an error. */ @Cordova() - static getCurrentPosition(options: GeolocationOptions){ + static getCurrentPosition(options?: GeolocationOptions){ // This Promise is replaced by one from the @Cordova decorator that wraps // the plugin's callbacks. We provide a dummy one here so TypeScript // knows that the correct return type is Promise, because there's no way @@ -157,7 +157,7 @@ export class Geolocation { observable: true, clearFunction: 'clearWatch' }) - static watchPosition(options: GeolocationOptions){ + static watchPosition(options?: GeolocationOptions){ // This Observable is replaced by one from the @Cordova decorator that wraps // the plugin's callbacks. We provide a dummy one here so TypeScript // knows that the correct return type is Observable, because there's no way