We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c186fb commit 739fb1dCopy full SHA for 739fb1d
package/src/types.d.ts
@@ -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
- */
11
export interface vpnOptions {
12
host: string;
13
port: number;
@@ -20,4 +10,10 @@ export interface vpnOptions {
20
localizedDescription?: string;
21
}
22
+export interface VpnModule {
14
+ startVpn(options: VpnOptions): Promise<boolean | string>;
15
+}
16
+
17
+declare const vpnModule: VpnModule;
18
+export default vpnModule;
23
19
export type startVPN = (data: vpnOptions) => Promise<String | Boolean>;
0 commit comments