Skip to content

Commit 739fb1d

Browse files
committed
feat: type added
1 parent 9c186fb commit 739fb1d

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

package/src/types.d.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
/**
2-
* Start Outline VPN
3-
* @param callback A callback function that will receive the result of the suppression.
4-
* - result: A number representing the result of the suppression.
5-
* 0: Not Supported
6-
* 1: Already suppressed
7-
* 2: Denied
8-
* 3: Cancelled
9-
* 4: Success
10-
*/
111
export interface vpnOptions {
122
host: string;
133
port: number;
@@ -20,4 +10,10 @@ export interface vpnOptions {
2010
localizedDescription?: string;
2111
}
2212

13+
export interface VpnModule {
14+
startVpn(options: VpnOptions): Promise<boolean | string>;
15+
}
16+
17+
declare const vpnModule: VpnModule;
18+
export default vpnModule;
2319
export type startVPN = (data: vpnOptions) => Promise<String | Boolean>;

0 commit comments

Comments
 (0)