fix(call-number): number should be a string

closes #545
This commit is contained in:
Ibrahim Hadeed 2016-09-19 18:20:51 -04:00 committed by GitHub
parent 281575b961
commit 763ad1bdb0

View File

@ -24,13 +24,13 @@ import { Plugin, Cordova } from './plugin';
export class CallNumber { export class CallNumber {
/** /**
* Calls a phone number * Calls a phone number
* @param numberToCall {number} The phone number to call * @param numberToCall {string} The phone number to call as a string
* @param bypassAppChooser {boolean} Set to true to bypass the app chooser and go directly to dialer * @param bypassAppChooser {boolean} Set to true to bypass the app chooser and go directly to dialer
*/ */
@Cordova({ @Cordova({
callbackOrder: 'reverse' callbackOrder: 'reverse'
}) })
static callNumber(numberToCall: number, bypassAppChooser: boolean): Promise<any> { static callNumber(numberToCall: string, bypassAppChooser: boolean): Promise<any> {
return; return;
} }
} }