/
types.ts
48 lines (46 loc) · 1.26 KB
/
types.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
export type devServerOptionsType = {
bonjour?: boolean;
client?: devServerClientOptions;
compress?: boolean;
dev?: object;
firewall?: boolean | string[];
headers?: object;
historyApiFallback?: boolean | object;
host?: string | null;
hot?: boolean | string;
http2?: boolean;
https?: boolean | object;
injectClient?: boolean | Function;
injectHot?: boolean | Function;
liveReload?: boolean;
onAfterSetupMiddleware?: Function;
onBeforeSetupMiddleware?: Function;
onListening?: Function;
open?: string | boolean | object;
openPage?: string | string[];
overlay?: boolean | object;
port?: number | string | null;
profile?: boolean;
progress?: boolean;
proxy?: object | (object | Function)[];
public?: string;
static?: boolean | string | object | (string | object)[];
transportMode?: object | string;
useLocalIp?: boolean;
publicPath?: undefined;
};
type devServerClientOptions = {
host?: string;
path?: string;
port?: string | number | null;
logging?: devServerClientLogging;
progress?: boolean;
};
export enum devServerClientLogging {
none = 'none',
error = 'error',
warn = 'warn',
info = 'info',
log = 'log',
verbose = 'verbose',
}