-
Notifications
You must be signed in to change notification settings - Fork 340
/
Configuration.d.ts
48 lines (42 loc) · 1.05 KB
/
Configuration.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import * as https from 'https';
export type OperatingSystem = 'android' | 'ios';
export interface HostItem {
type: OperatingSystem;
secure: boolean;
hostname: string;
port: number;
pathname?: string;
useProxy?: boolean;
}
export interface HostsItem {
type: OperatingSystem | OperatingSystem[];
secure: boolean;
hostname: string;
port: number;
pathname?: string;
useProxy?: boolean;
}
export type ExtendedServerOption = https.ServerOptions & {
certPath?: string;
keyPath?: string;
};
export interface ServerItem {
secure: boolean;
port: number;
options?: ExtendedServerOption;
redirectToSecure?:
| {
port?: number;
host?: string;
}
| boolean;
}
// The configuration file must contain a single object with this structure
export interface Configuration {
server?: ServerItem[];
runApplTracker?: boolean;
announceApplTracker?: boolean;
runGoogTracker?: boolean;
announceGoogTracker?: boolean;
remoteHostList?: HostsItem[];
}