From 8b9445caf09093422d761c6b3f91ed330d273047 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Thu, 6 Jun 2024 19:07:19 +0200 Subject: [PATCH] fix: correct since for isListening and listeningState (#92) --- README.md | 4 +++- src/definitions.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b137cd7..dd95909 100644 --- a/README.md +++ b/README.md @@ -183,6 +183,8 @@ This method will check if speech recognition is listening. **Returns:** Promise<{ listening: boolean; }> +**Since:** 5.1.0 + -------------------- @@ -266,7 +268,7 @@ Called when listening state changed. **Returns:** Promise<PluginListenerHandle> & PluginListenerHandle -**Since:** 6.0.0 +**Since:** 5.1.0 -------------------- diff --git a/src/definitions.ts b/src/definitions.ts index 6c5f609..bde45ba 100644 --- a/src/definitions.ts +++ b/src/definitions.ts @@ -58,6 +58,8 @@ export interface SpeechRecognitionPlugin { * This method will check if speech recognition is listening. * @param none * @returns boolean true/false if speech recognition is currently listening + * + * @since 5.1.0 */ isListening(): Promise<{ listening: boolean }>; /** @@ -97,7 +99,7 @@ export interface SpeechRecognitionPlugin { /** * Called when listening state changed. * - * @since 6.0.0 + * @since 5.1.0 */ addListener( eventName: 'listeningState',