Skip to content

Commit 656b367

Browse files
committed
chore: typings fix
1 parent 9f230d3 commit 656b367

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/index.d.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
export declare class TNSTextToSpeech {
2+
init(): Promise<void>;
23

3-
async init();
4-
54
/**
65
* Initiate the text to speech.
76
* @param {object} SpeakOptions - SpeakOptions object.
87
*/
9-
async speak(options: SpeakOptions);
8+
speak(options: SpeakOptions): Promise<void>;
109

1110
/**
1211
* Release the resources used by the TextToSpeech engine/synthesizer

src/texttospeech.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class TNSTextToSpeech {
4545
delegate: MySpeechDelegate;
4646

4747
public async init() {
48-
//stub function to be like android
48+
//stub function to be like android
4949
}
5050
public async speak(options: SpeakOptions): Promise<any> {
5151
if (!this._speechSynthesizer) {

0 commit comments

Comments
 (0)