From 579170a99ea8a53634631b76ffa19b6b635c1d03 Mon Sep 17 00:00:00 2001 From: David Boho Date: Fri, 14 Aug 2020 17:38:14 +0200 Subject: [PATCH] fix(geolocation): #3303 geolocation watchPosition return type (#3470) * fix #3303 geolocation watchPosition return type * watchPosition align docs --- src/@ionic-native/plugins/geolocation/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/@ionic-native/plugins/geolocation/index.ts b/src/@ionic-native/plugins/geolocation/index.ts index 914b295797..ffd804b777 100644 --- a/src/@ionic-native/plugins/geolocation/index.ts +++ b/src/@ionic-native/plugins/geolocation/index.ts @@ -192,10 +192,10 @@ export class Geolocation extends IonicNativePlugin { * ``` * * @param {GeolocationOptions} options The [geolocation options](https://developer.mozilla.org/en-US/docs/Web/API/PositionOptions). - * @returns {Observable} Returns an Observable that notifies with the [position](https://developer.mozilla.org/en-US/docs/Web/API/Position) of the device, or errors. + * @returns {Observable} Returns an Observable that notifies with the [position](https://developer.mozilla.org/en-US/docs/Web/API/Position) of the device, or errors. */ - watchPosition(options?: GeolocationOptions): Observable { - return new Observable((observer: any) => { + watchPosition(options?: GeolocationOptions): Observable { + return new Observable((observer: any) => { const watchId = navigator.geolocation.watchPosition( observer.next.bind(observer), observer.next.bind(observer),