Skip to content

Commit

Permalink
fix: correct since for isListening and listeningState (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Jun 6, 2024
1 parent ca1645b commit 8b9445c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ This method will check if speech recognition is listening.

**Returns:** <code>Promise&lt;{ listening: boolean; }&gt;</code>

**Since:** 5.1.0

--------------------


Expand Down Expand Up @@ -266,7 +268,7 @@ Called when listening state changed.

**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt; & <a href="#pluginlistenerhandle">PluginListenerHandle</a></code>

**Since:** 6.0.0
**Since:** 5.1.0

--------------------

Expand Down
4 changes: 3 additions & 1 deletion src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }>;
/**
Expand Down Expand Up @@ -97,7 +99,7 @@ export interface SpeechRecognitionPlugin {
/**
* Called when listening state changed.
*
* @since 6.0.0
* @since 5.1.0
*/
addListener(
eventName: 'listeningState',
Expand Down

0 comments on commit 8b9445c

Please sign in to comment.