1
0
mirror of synced 2024-11-24 07:10:15 +01:00

refactor: type Hcef module

This commit is contained in:
Juchan Roh 2023-02-04 23:05:45 +09:00
parent ca9aa37257
commit 9a740008ea
2 changed files with 14 additions and 3 deletions

View File

@ -1,3 +0,0 @@
import {NativeModules} from 'react-native';
module.exports = NativeModules.Hcef;

14
src/module/Hcef.ts Normal file
View File

@ -0,0 +1,14 @@
import { NativeModules } from 'react-native';
const { Hcef } = NativeModules;
interface HcefModule {
support: boolean;
enabled: boolean;
setSID: (sid: string) => Promise<true>;
enableService: () => Promise<true>;
disableService: () => Promise<true>;
}
export default Hcef as HcefModule;