Skip to content

Commit

Permalink
fix(globalization): add missing parameter to numberToString function
Browse files Browse the repository at this point in the history
closes #835
  • Loading branch information
ihadeed committed Nov 29, 2016
1 parent efb2ee7 commit 1072ab1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plugins/globalization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,14 @@ export class Globalization {

/**
* Returns a number formatted as a string according to the client's user preferences.
* @param options
* @param number {Number} The number to convert
* @param options {Object} Object with property `type` that can be set to: decimal, percent, or currency.
*/
@Cordova({
successIndex: 1,
errorIndex: 2
})
static numberToString(options: { type: string }): Promise<{ value: string }> { return; }
static numberToString(number: number, options: { type: string }): Promise<{ value: string }> { return; }

/**
*
Expand Down

0 comments on commit 1072ab1

Please sign in to comment.