refactor(tts): rename the speak method param

This commit is contained in:
Ibby Hadeed 2017-05-19 00:35:06 -04:00
parent 2245bb8050
commit 4bfceadb65

View File

@ -42,14 +42,14 @@ export class TextToSpeech extends IonicNativePlugin {
/** /**
* This function speaks * This function speaks
* @param options {string | TTSOptions} Text to speak or TTSOptions * @param textOrOptions {string | TTSOptions} Text to speak or TTSOptions
* @return {Promise<any>} Returns a promise that resolves when the speaking finishes * @return {Promise<any>} Returns a promise that resolves when the speaking finishes
*/ */
@Cordova({ @Cordova({
successIndex: 1, successIndex: 1,
errorIndex: 2 errorIndex: 2
}) })
speak(options: string | TTSOptions): Promise<any> { speak(textOrOptions: string | TTSOptions): Promise<any> {
return; return;
} }