Skip to content

Commit

Permalink
fix(location-accuracy): accuracy param is number
Browse files Browse the repository at this point in the history
closes #676
  • Loading branch information
ihadeed committed Oct 11, 2016
1 parent e28e5b0 commit c2d4f1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/location-accuracy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ export class LocationAccuracy {

/**
* Requests accurate location
* @param accuracy {number} Accuracy, from 0 to 4. You can use the static properties of this class that start with REQUEST_PRIORITY_
* @returns {Promise<any>} Returns a promise that resolves on success and rejects if an error occurred
*/
@Cordova({ callbackOrder: 'reverse' })
static request(accuracy: string): Promise<any> { return; }
static request(accuracy: number): Promise<any> { return; }

static REQUEST_PRIORITY_NO_POWER = 0;
static REQUEST_PRIORITY_LOW_POWER = 1;
Expand Down

0 comments on commit c2d4f1c

Please sign in to comment.