expo-speech-recognition 0.2.25 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/index.ts CHANGED
@@ -1,7 +1,4 @@
1
- import {
2
- ExpoSpeechRecognitionModule,
3
- ExpoSpeechRecognitionModuleEmitter,
4
- } from "./ExpoSpeechRecognitionModule";
1
+ import { ExpoSpeechRecognitionModule } from "./ExpoSpeechRecognitionModule";
5
2
  import type { ExpoSpeechRecognitionNativeEventMap } from "./ExpoSpeechRecognitionModule.types";
6
3
 
7
4
  // Export the SpeechRecognition APIs
@@ -12,10 +9,7 @@ export {
12
9
  } from "./ExpoWebSpeechRecognition";
13
10
 
14
11
  // Native module
15
- export {
16
- ExpoSpeechRecognitionModule,
17
- ExpoSpeechRecognitionModuleEmitter,
18
- } from "./ExpoSpeechRecognitionModule";
12
+ export { ExpoSpeechRecognitionModule } from "./ExpoSpeechRecognitionModule";
19
13
 
20
14
  // Hooks
21
15
  export { useSpeechRecognitionEvent } from "./useSpeechRecognitionEvent";
@@ -63,12 +57,8 @@ export const getDefaultRecognitionService =
63
57
  export const getAssistantService =
64
58
  ExpoSpeechRecognitionModule.getAssistantService;
65
59
 
66
- export const addSpeechRecognitionListener = <
67
- T extends keyof ExpoSpeechRecognitionNativeEventMap,
68
- >(
69
- eventName: T,
70
- listener: (ev: ExpoSpeechRecognitionNativeEventMap[T]) => void,
71
- ) => ExpoSpeechRecognitionModuleEmitter.addListener(eventName, listener);
60
+ export const addSpeechRecognitionListener =
61
+ ExpoSpeechRecognitionModule.addListener;
72
62
 
73
63
  export {
74
64
  type ExpoSpeechRecognitionOptions,