fix(location-accuracy): accuracy param is number

closes #676
This commit is contained in:
Ibby 2016-10-11 19:35:54 -04:00
parent e28e5b0f5f
commit c2d4f1c0da

View File

@ -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;