refactor: type Hcef module
This commit is contained in:
parent
ca9aa37257
commit
9a740008ea
@ -1,3 +0,0 @@
|
||||
import {NativeModules} from 'react-native';
|
||||
|
||||
module.exports = NativeModules.Hcef;
|
14
src/module/Hcef.ts
Normal file
14
src/module/Hcef.ts
Normal 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;
|
Loading…
Reference in New Issue
Block a user