Skip to content

Commit

Permalink
fix(geolocation): fix watchPosition return type
Browse files Browse the repository at this point in the history
closes #741
  • Loading branch information
ihadeed committed Oct 27, 2016
1 parent c98b4f4 commit d5310b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/geolocation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export class Geolocation {
* @param {GeolocationOptions} options The [geolocation options](https://developer.mozilla.org/en-US/docs/Web/API/PositionOptions).
* @return Returns an Observable that notifies with the [position](https://developer.mozilla.org/en-US/docs/Web/API/Position) of the device, or errors.
*/
static watchPosition(options?: GeolocationOptions): Observable<Geoposition | PositionError> {
static watchPosition(options?: GeolocationOptions): Observable<Geoposition & PositionError> {
return new Observable<Geoposition>(
(observer: any) => {
let watchId = navigator.geolocation.watchPosition(observer.next.bind(observer), observer.next.bind(observer), options);
Expand Down

0 comments on commit d5310b0

Please sign in to comment.