11 lines
284 B
TypeScript
11 lines
284 B
TypeScript
import type {TurboModule} from 'react-native';
|
|
import {TurboModuleRegistry} from 'react-native';
|
|
|
|
export interface Spec extends TurboModule {
|
|
loadWhisper(path: string): void;
|
|
translate() : void;
|
|
}
|
|
|
|
export default TurboModuleRegistry.getEnforcing<Spec>(
|
|
'NativeWhisperEngine',
|
|
); |