webpack-dev-server 4.15.1 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -38
- package/bin/webpack-dev-server.js +5 -5
- package/client/clients/SockJSClient.js +2 -2
- package/client/clients/WebSocketClient.js +2 -2
- package/client/index.js +5 -14
- package/client/modules/logger/index.js +45 -56
- package/client/modules/sockjs-client/index.js +0 -5
- package/client/overlay/fsm.js +4 -4
- package/client/overlay.js +11 -11
- package/lib/Server.js +161 -487
- package/lib/getPort.js +3 -3
- package/lib/options.json +20 -270
- package/lib/servers/SockJSServer.js +2 -2
- package/lib/servers/WebsocketServer.js +15 -4
- package/package.json +66 -66
- package/types/lib/Server.d.ts +270 -2301
- package/types/lib/getPort.d.ts +1 -1
- package/bin/process-arguments.js +0 -412
- package/types/bin/process-arguments.d.ts +0 -50
package/types/lib/Server.d.ts
CHANGED
|
@@ -1,1441 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
export = Server;
|
|
3
3
|
declare class Server {
|
|
4
|
-
static get cli(): {
|
|
5
|
-
readonly getArguments: () => {
|
|
6
|
-
"allowed-hosts": {
|
|
7
|
-
configs: (
|
|
8
|
-
| {
|
|
9
|
-
type: string;
|
|
10
|
-
multiple: boolean;
|
|
11
|
-
description: string;
|
|
12
|
-
path: string;
|
|
13
|
-
}
|
|
14
|
-
| {
|
|
15
|
-
description: string;
|
|
16
|
-
multiple: boolean;
|
|
17
|
-
path: string;
|
|
18
|
-
type: string;
|
|
19
|
-
values: string[];
|
|
20
|
-
}
|
|
21
|
-
)[];
|
|
22
|
-
description: string;
|
|
23
|
-
multiple: boolean;
|
|
24
|
-
simpleType: string;
|
|
25
|
-
};
|
|
26
|
-
"allowed-hosts-reset": {
|
|
27
|
-
configs: {
|
|
28
|
-
type: string;
|
|
29
|
-
multiple: boolean;
|
|
30
|
-
/** @typedef {import("express").NextFunction} NextFunction */
|
|
31
|
-
/** @typedef {import("express").RequestHandler} ExpressRequestHandler */
|
|
32
|
-
/** @typedef {import("express").ErrorRequestHandler} ExpressErrorRequestHandler */
|
|
33
|
-
/** @typedef {import("chokidar").WatchOptions} WatchOptions */
|
|
34
|
-
/** @typedef {import("chokidar").FSWatcher} FSWatcher */
|
|
35
|
-
/** @typedef {import("connect-history-api-fallback").Options} ConnectHistoryApiFallbackOptions */
|
|
36
|
-
/** @typedef {import("bonjour-service").Bonjour} Bonjour */
|
|
37
|
-
/** @typedef {import("bonjour-service").Service} BonjourOptions */
|
|
38
|
-
/** @typedef {import("http-proxy-middleware").RequestHandler} RequestHandler */
|
|
39
|
-
/** @typedef {import("http-proxy-middleware").Options} HttpProxyMiddlewareOptions */
|
|
40
|
-
/** @typedef {import("http-proxy-middleware").Filter} HttpProxyMiddlewareOptionsFilter */
|
|
41
|
-
/** @typedef {import("serve-index").Options} ServeIndexOptions */
|
|
42
|
-
/** @typedef {import("serve-static").ServeStaticOptions} ServeStaticOptions */
|
|
43
|
-
/** @typedef {import("ipaddr.js").IPv4} IPv4 */
|
|
44
|
-
/** @typedef {import("ipaddr.js").IPv6} IPv6 */
|
|
45
|
-
/** @typedef {import("net").Socket} Socket */
|
|
46
|
-
/** @typedef {import("http").IncomingMessage} IncomingMessage */
|
|
47
|
-
/** @typedef {import("open").Options} OpenOptions */
|
|
48
|
-
/** @typedef {import("https").ServerOptions & { spdy?: { plain?: boolean | undefined, ssl?: boolean | undefined, 'x-forwarded-for'?: string | undefined, protocol?: string | undefined, protocols?: string[] | undefined }}} ServerOptions */
|
|
49
|
-
/**
|
|
50
|
-
* @template Request, Response
|
|
51
|
-
* @typedef {import("webpack-dev-middleware").Options<Request, Response>} DevMiddlewareOptions
|
|
52
|
-
*/
|
|
53
|
-
/**
|
|
54
|
-
* @template Request, Response
|
|
55
|
-
* @typedef {import("webpack-dev-middleware").Context<Request, Response>} DevMiddlewareContext
|
|
56
|
-
*/
|
|
57
|
-
/**
|
|
58
|
-
* @typedef {"local-ip" | "local-ipv4" | "local-ipv6" | string} Host
|
|
59
|
-
*/
|
|
60
|
-
/**
|
|
61
|
-
* @typedef {number | string | "auto"} Port
|
|
62
|
-
*/
|
|
63
|
-
/**
|
|
64
|
-
* @typedef {Object} WatchFiles
|
|
65
|
-
* @property {string | string[]} paths
|
|
66
|
-
* @property {WatchOptions & { aggregateTimeout?: number, ignored?: WatchOptions["ignored"], poll?: number | boolean }} [options]
|
|
67
|
-
*/
|
|
68
|
-
/**
|
|
69
|
-
* @typedef {Object} Static
|
|
70
|
-
* @property {string} [directory]
|
|
71
|
-
* @property {string | string[]} [publicPath]
|
|
72
|
-
* @property {boolean | ServeIndexOptions} [serveIndex]
|
|
73
|
-
* @property {ServeStaticOptions} [staticOptions]
|
|
74
|
-
* @property {boolean | WatchOptions & { aggregateTimeout?: number, ignored?: WatchOptions["ignored"], poll?: number | boolean }} [watch]
|
|
75
|
-
*/
|
|
76
|
-
/**
|
|
77
|
-
* @typedef {Object} NormalizedStatic
|
|
78
|
-
* @property {string} directory
|
|
79
|
-
* @property {string[]} publicPath
|
|
80
|
-
* @property {false | ServeIndexOptions} serveIndex
|
|
81
|
-
* @property {ServeStaticOptions} staticOptions
|
|
82
|
-
* @property {false | WatchOptions} watch
|
|
83
|
-
*/
|
|
84
|
-
/**
|
|
85
|
-
* @typedef {Object} ServerConfiguration
|
|
86
|
-
* @property {"http" | "https" | "spdy" | string} [type]
|
|
87
|
-
* @property {ServerOptions} [options]
|
|
88
|
-
*/
|
|
89
|
-
/**
|
|
90
|
-
* @typedef {Object} WebSocketServerConfiguration
|
|
91
|
-
* @property {"sockjs" | "ws" | string | Function} [type]
|
|
92
|
-
* @property {Record<string, any>} [options]
|
|
93
|
-
*/
|
|
94
|
-
/**
|
|
95
|
-
* @typedef {(import("ws").WebSocket | import("sockjs").Connection & { send: import("ws").WebSocket["send"], terminate: import("ws").WebSocket["terminate"], ping: import("ws").WebSocket["ping"] }) & { isAlive?: boolean }} ClientConnection
|
|
96
|
-
*/
|
|
97
|
-
/**
|
|
98
|
-
* @typedef {import("ws").WebSocketServer | import("sockjs").Server & { close: import("ws").WebSocketServer["close"] }} WebSocketServer
|
|
99
|
-
*/
|
|
100
|
-
/**
|
|
101
|
-
* @typedef {{ implementation: WebSocketServer, clients: ClientConnection[] }} WebSocketServerImplementation
|
|
102
|
-
*/
|
|
103
|
-
/**
|
|
104
|
-
* @callback ByPass
|
|
105
|
-
* @param {Request} req
|
|
106
|
-
* @param {Response} res
|
|
107
|
-
* @param {ProxyConfigArrayItem} proxyConfig
|
|
108
|
-
*/
|
|
109
|
-
/**
|
|
110
|
-
* @typedef {{ path?: HttpProxyMiddlewareOptionsFilter | undefined, context?: HttpProxyMiddlewareOptionsFilter | undefined } & { bypass?: ByPass } & HttpProxyMiddlewareOptions } ProxyConfigArrayItem
|
|
111
|
-
*/
|
|
112
|
-
/**
|
|
113
|
-
* @typedef {(ProxyConfigArrayItem | ((req?: Request | undefined, res?: Response | undefined, next?: NextFunction | undefined) => ProxyConfigArrayItem))[]} ProxyConfigArray
|
|
114
|
-
*/
|
|
115
|
-
/**
|
|
116
|
-
* @typedef {{ [url: string]: string | ProxyConfigArrayItem }} ProxyConfigMap
|
|
117
|
-
*/
|
|
118
|
-
/**
|
|
119
|
-
* @typedef {Object} OpenApp
|
|
120
|
-
* @property {string} [name]
|
|
121
|
-
* @property {string[]} [arguments]
|
|
122
|
-
*/
|
|
123
|
-
/**
|
|
124
|
-
* @typedef {Object} Open
|
|
125
|
-
* @property {string | string[] | OpenApp} [app]
|
|
126
|
-
* @property {string | string[]} [target]
|
|
127
|
-
*/
|
|
128
|
-
/**
|
|
129
|
-
* @typedef {Object} NormalizedOpen
|
|
130
|
-
* @property {string} target
|
|
131
|
-
* @property {import("open").Options} options
|
|
132
|
-
*/
|
|
133
|
-
/**
|
|
134
|
-
* @typedef {Object} WebSocketURL
|
|
135
|
-
* @property {string} [hostname]
|
|
136
|
-
* @property {string} [password]
|
|
137
|
-
* @property {string} [pathname]
|
|
138
|
-
* @property {number | string} [port]
|
|
139
|
-
* @property {string} [protocol]
|
|
140
|
-
* @property {string} [username]
|
|
141
|
-
*/
|
|
142
|
-
/**
|
|
143
|
-
* @typedef {boolean | ((error: Error) => void)} OverlayMessageOptions
|
|
144
|
-
*/
|
|
145
|
-
/**
|
|
146
|
-
* @typedef {Object} ClientConfiguration
|
|
147
|
-
* @property {"log" | "info" | "warn" | "error" | "none" | "verbose"} [logging]
|
|
148
|
-
* @property {boolean | { warnings?: OverlayMessageOptions, errors?: OverlayMessageOptions, runtimeErrors?: OverlayMessageOptions }} [overlay]
|
|
149
|
-
* @property {boolean} [progress]
|
|
150
|
-
* @property {boolean | number} [reconnect]
|
|
151
|
-
* @property {"ws" | "sockjs" | string} [webSocketTransport]
|
|
152
|
-
* @property {string | WebSocketURL} [webSocketURL]
|
|
153
|
-
*/
|
|
154
|
-
/**
|
|
155
|
-
* @typedef {Array<{ key: string; value: string }> | Record<string, string | string[]>} Headers
|
|
156
|
-
*/
|
|
157
|
-
/**
|
|
158
|
-
* @typedef {{ name?: string, path?: string, middleware: ExpressRequestHandler | ExpressErrorRequestHandler } | ExpressRequestHandler | ExpressErrorRequestHandler} Middleware
|
|
159
|
-
*/
|
|
160
|
-
/**
|
|
161
|
-
* @typedef {Object} Configuration
|
|
162
|
-
* @property {boolean | string} [ipc]
|
|
163
|
-
* @property {Host} [host]
|
|
164
|
-
* @property {Port} [port]
|
|
165
|
-
* @property {boolean | "only"} [hot]
|
|
166
|
-
* @property {boolean} [liveReload]
|
|
167
|
-
* @property {DevMiddlewareOptions<Request, Response>} [devMiddleware]
|
|
168
|
-
* @property {boolean} [compress]
|
|
169
|
-
* @property {boolean} [magicHtml]
|
|
170
|
-
* @property {"auto" | "all" | string | string[]} [allowedHosts]
|
|
171
|
-
* @property {boolean | ConnectHistoryApiFallbackOptions} [historyApiFallback]
|
|
172
|
-
* @property {boolean | Record<string, never> | BonjourOptions} [bonjour]
|
|
173
|
-
* @property {string | string[] | WatchFiles | Array<string | WatchFiles>} [watchFiles]
|
|
174
|
-
* @property {boolean | string | Static | Array<string | Static>} [static]
|
|
175
|
-
* @property {boolean | ServerOptions} [https]
|
|
176
|
-
* @property {boolean} [http2]
|
|
177
|
-
* @property {"http" | "https" | "spdy" | string | ServerConfiguration} [server]
|
|
178
|
-
* @property {boolean | "sockjs" | "ws" | string | WebSocketServerConfiguration} [webSocketServer]
|
|
179
|
-
* @property {ProxyConfigMap | ProxyConfigArrayItem | ProxyConfigArray} [proxy]
|
|
180
|
-
* @property {boolean | string | Open | Array<string | Open>} [open]
|
|
181
|
-
* @property {boolean} [setupExitSignals]
|
|
182
|
-
* @property {boolean | ClientConfiguration} [client]
|
|
183
|
-
* @property {Headers | ((req: Request, res: Response, context: DevMiddlewareContext<Request, Response>) => Headers)} [headers]
|
|
184
|
-
* @property {(devServer: Server) => void} [onAfterSetupMiddleware]
|
|
185
|
-
* @property {(devServer: Server) => void} [onBeforeSetupMiddleware]
|
|
186
|
-
* @property {(devServer: Server) => void} [onListening]
|
|
187
|
-
* @property {(middlewares: Middleware[], devServer: Server) => Middleware[]} [setupMiddlewares]
|
|
188
|
-
*/
|
|
189
|
-
description: string;
|
|
190
|
-
path: string;
|
|
191
|
-
}[];
|
|
192
|
-
/** @typedef {import("chokidar").FSWatcher} FSWatcher */
|
|
193
|
-
/** @typedef {import("connect-history-api-fallback").Options} ConnectHistoryApiFallbackOptions */
|
|
194
|
-
/** @typedef {import("bonjour-service").Bonjour} Bonjour */
|
|
195
|
-
/** @typedef {import("bonjour-service").Service} BonjourOptions */
|
|
196
|
-
/** @typedef {import("http-proxy-middleware").RequestHandler} RequestHandler */
|
|
197
|
-
/** @typedef {import("http-proxy-middleware").Options} HttpProxyMiddlewareOptions */
|
|
198
|
-
/** @typedef {import("http-proxy-middleware").Filter} HttpProxyMiddlewareOptionsFilter */
|
|
199
|
-
/** @typedef {import("serve-index").Options} ServeIndexOptions */
|
|
200
|
-
/** @typedef {import("serve-static").ServeStaticOptions} ServeStaticOptions */
|
|
201
|
-
/** @typedef {import("ipaddr.js").IPv4} IPv4 */
|
|
202
|
-
/** @typedef {import("ipaddr.js").IPv6} IPv6 */
|
|
203
|
-
/** @typedef {import("net").Socket} Socket */
|
|
204
|
-
/** @typedef {import("http").IncomingMessage} IncomingMessage */
|
|
205
|
-
/** @typedef {import("open").Options} OpenOptions */
|
|
206
|
-
/** @typedef {import("https").ServerOptions & { spdy?: { plain?: boolean | undefined, ssl?: boolean | undefined, 'x-forwarded-for'?: string | undefined, protocol?: string | undefined, protocols?: string[] | undefined }}} ServerOptions */
|
|
207
|
-
/**
|
|
208
|
-
* @template Request, Response
|
|
209
|
-
* @typedef {import("webpack-dev-middleware").Options<Request, Response>} DevMiddlewareOptions
|
|
210
|
-
*/
|
|
211
|
-
/**
|
|
212
|
-
* @template Request, Response
|
|
213
|
-
* @typedef {import("webpack-dev-middleware").Context<Request, Response>} DevMiddlewareContext
|
|
214
|
-
*/
|
|
215
|
-
/**
|
|
216
|
-
* @typedef {"local-ip" | "local-ipv4" | "local-ipv6" | string} Host
|
|
217
|
-
*/
|
|
218
|
-
/**
|
|
219
|
-
* @typedef {number | string | "auto"} Port
|
|
220
|
-
*/
|
|
221
|
-
/**
|
|
222
|
-
* @typedef {Object} WatchFiles
|
|
223
|
-
* @property {string | string[]} paths
|
|
224
|
-
* @property {WatchOptions & { aggregateTimeout?: number, ignored?: WatchOptions["ignored"], poll?: number | boolean }} [options]
|
|
225
|
-
*/
|
|
226
|
-
/**
|
|
227
|
-
* @typedef {Object} Static
|
|
228
|
-
* @property {string} [directory]
|
|
229
|
-
* @property {string | string[]} [publicPath]
|
|
230
|
-
* @property {boolean | ServeIndexOptions} [serveIndex]
|
|
231
|
-
* @property {ServeStaticOptions} [staticOptions]
|
|
232
|
-
* @property {boolean | WatchOptions & { aggregateTimeout?: number, ignored?: WatchOptions["ignored"], poll?: number | boolean }} [watch]
|
|
233
|
-
*/
|
|
234
|
-
/**
|
|
235
|
-
* @typedef {Object} NormalizedStatic
|
|
236
|
-
* @property {string} directory
|
|
237
|
-
* @property {string[]} publicPath
|
|
238
|
-
* @property {false | ServeIndexOptions} serveIndex
|
|
239
|
-
* @property {ServeStaticOptions} staticOptions
|
|
240
|
-
* @property {false | WatchOptions} watch
|
|
241
|
-
*/
|
|
242
|
-
/**
|
|
243
|
-
* @typedef {Object} ServerConfiguration
|
|
244
|
-
* @property {"http" | "https" | "spdy" | string} [type]
|
|
245
|
-
* @property {ServerOptions} [options]
|
|
246
|
-
*/
|
|
247
|
-
/**
|
|
248
|
-
* @typedef {Object} WebSocketServerConfiguration
|
|
249
|
-
* @property {"sockjs" | "ws" | string | Function} [type]
|
|
250
|
-
* @property {Record<string, any>} [options]
|
|
251
|
-
*/
|
|
252
|
-
/**
|
|
253
|
-
* @typedef {(import("ws").WebSocket | import("sockjs").Connection & { send: import("ws").WebSocket["send"], terminate: import("ws").WebSocket["terminate"], ping: import("ws").WebSocket["ping"] }) & { isAlive?: boolean }} ClientConnection
|
|
254
|
-
*/
|
|
255
|
-
/**
|
|
256
|
-
* @typedef {import("ws").WebSocketServer | import("sockjs").Server & { close: import("ws").WebSocketServer["close"] }} WebSocketServer
|
|
257
|
-
*/
|
|
258
|
-
/**
|
|
259
|
-
* @typedef {{ implementation: WebSocketServer, clients: ClientConnection[] }} WebSocketServerImplementation
|
|
260
|
-
*/
|
|
261
|
-
/**
|
|
262
|
-
* @callback ByPass
|
|
263
|
-
* @param {Request} req
|
|
264
|
-
* @param {Response} res
|
|
265
|
-
* @param {ProxyConfigArrayItem} proxyConfig
|
|
266
|
-
*/
|
|
267
|
-
/**
|
|
268
|
-
* @typedef {{ path?: HttpProxyMiddlewareOptionsFilter | undefined, context?: HttpProxyMiddlewareOptionsFilter | undefined } & { bypass?: ByPass } & HttpProxyMiddlewareOptions } ProxyConfigArrayItem
|
|
269
|
-
*/
|
|
270
|
-
/**
|
|
271
|
-
* @typedef {(ProxyConfigArrayItem | ((req?: Request | undefined, res?: Response | undefined, next?: NextFunction | undefined) => ProxyConfigArrayItem))[]} ProxyConfigArray
|
|
272
|
-
*/
|
|
273
|
-
/**
|
|
274
|
-
* @typedef {{ [url: string]: string | ProxyConfigArrayItem }} ProxyConfigMap
|
|
275
|
-
*/
|
|
276
|
-
/**
|
|
277
|
-
* @typedef {Object} OpenApp
|
|
278
|
-
* @property {string} [name]
|
|
279
|
-
* @property {string[]} [arguments]
|
|
280
|
-
*/
|
|
281
|
-
/**
|
|
282
|
-
* @typedef {Object} Open
|
|
283
|
-
* @property {string | string[] | OpenApp} [app]
|
|
284
|
-
* @property {string | string[]} [target]
|
|
285
|
-
*/
|
|
286
|
-
/**
|
|
287
|
-
* @typedef {Object} NormalizedOpen
|
|
288
|
-
* @property {string} target
|
|
289
|
-
* @property {import("open").Options} options
|
|
290
|
-
*/
|
|
291
|
-
/**
|
|
292
|
-
* @typedef {Object} WebSocketURL
|
|
293
|
-
* @property {string} [hostname]
|
|
294
|
-
* @property {string} [password]
|
|
295
|
-
* @property {string} [pathname]
|
|
296
|
-
* @property {number | string} [port]
|
|
297
|
-
* @property {string} [protocol]
|
|
298
|
-
* @property {string} [username]
|
|
299
|
-
*/
|
|
300
|
-
/**
|
|
301
|
-
* @typedef {boolean | ((error: Error) => void)} OverlayMessageOptions
|
|
302
|
-
*/
|
|
303
|
-
/**
|
|
304
|
-
* @typedef {Object} ClientConfiguration
|
|
305
|
-
* @property {"log" | "info" | "warn" | "error" | "none" | "verbose"} [logging]
|
|
306
|
-
* @property {boolean | { warnings?: OverlayMessageOptions, errors?: OverlayMessageOptions, runtimeErrors?: OverlayMessageOptions }} [overlay]
|
|
307
|
-
* @property {boolean} [progress]
|
|
308
|
-
* @property {boolean | number} [reconnect]
|
|
309
|
-
* @property {"ws" | "sockjs" | string} [webSocketTransport]
|
|
310
|
-
* @property {string | WebSocketURL} [webSocketURL]
|
|
311
|
-
*/
|
|
312
|
-
/**
|
|
313
|
-
* @typedef {Array<{ key: string; value: string }> | Record<string, string | string[]>} Headers
|
|
314
|
-
*/
|
|
315
|
-
/**
|
|
316
|
-
* @typedef {{ name?: string, path?: string, middleware: ExpressRequestHandler | ExpressErrorRequestHandler } | ExpressRequestHandler | ExpressErrorRequestHandler} Middleware
|
|
317
|
-
*/
|
|
318
|
-
/**
|
|
319
|
-
* @typedef {Object} Configuration
|
|
320
|
-
* @property {boolean | string} [ipc]
|
|
321
|
-
* @property {Host} [host]
|
|
322
|
-
* @property {Port} [port]
|
|
323
|
-
* @property {boolean | "only"} [hot]
|
|
324
|
-
* @property {boolean} [liveReload]
|
|
325
|
-
* @property {DevMiddlewareOptions<Request, Response>} [devMiddleware]
|
|
326
|
-
* @property {boolean} [compress]
|
|
327
|
-
* @property {boolean} [magicHtml]
|
|
328
|
-
* @property {"auto" | "all" | string | string[]} [allowedHosts]
|
|
329
|
-
* @property {boolean | ConnectHistoryApiFallbackOptions} [historyApiFallback]
|
|
330
|
-
* @property {boolean | Record<string, never> | BonjourOptions} [bonjour]
|
|
331
|
-
* @property {string | string[] | WatchFiles | Array<string | WatchFiles>} [watchFiles]
|
|
332
|
-
* @property {boolean | string | Static | Array<string | Static>} [static]
|
|
333
|
-
* @property {boolean | ServerOptions} [https]
|
|
334
|
-
* @property {boolean} [http2]
|
|
335
|
-
* @property {"http" | "https" | "spdy" | string | ServerConfiguration} [server]
|
|
336
|
-
* @property {boolean | "sockjs" | "ws" | string | WebSocketServerConfiguration} [webSocketServer]
|
|
337
|
-
* @property {ProxyConfigMap | ProxyConfigArrayItem | ProxyConfigArray} [proxy]
|
|
338
|
-
* @property {boolean | string | Open | Array<string | Open>} [open]
|
|
339
|
-
* @property {boolean} [setupExitSignals]
|
|
340
|
-
* @property {boolean | ClientConfiguration} [client]
|
|
341
|
-
* @property {Headers | ((req: Request, res: Response, context: DevMiddlewareContext<Request, Response>) => Headers)} [headers]
|
|
342
|
-
* @property {(devServer: Server) => void} [onAfterSetupMiddleware]
|
|
343
|
-
* @property {(devServer: Server) => void} [onBeforeSetupMiddleware]
|
|
344
|
-
* @property {(devServer: Server) => void} [onListening]
|
|
345
|
-
* @property {(middlewares: Middleware[], devServer: Server) => Middleware[]} [setupMiddlewares]
|
|
346
|
-
*/
|
|
347
|
-
description: string;
|
|
348
|
-
simpleType: string;
|
|
349
|
-
multiple: boolean;
|
|
350
|
-
};
|
|
351
|
-
bonjour: {
|
|
352
|
-
configs: {
|
|
353
|
-
type: string;
|
|
354
|
-
multiple: boolean;
|
|
355
|
-
description: string;
|
|
356
|
-
negatedDescription: string;
|
|
357
|
-
path: string;
|
|
358
|
-
}[];
|
|
359
|
-
description: string;
|
|
360
|
-
simpleType: string;
|
|
361
|
-
multiple: boolean;
|
|
362
|
-
};
|
|
363
|
-
client: {
|
|
364
|
-
configs: {
|
|
365
|
-
description: string;
|
|
366
|
-
negatedDescription: string;
|
|
367
|
-
multiple: boolean;
|
|
368
|
-
path: string;
|
|
369
|
-
type: string;
|
|
370
|
-
values: boolean[];
|
|
371
|
-
}[];
|
|
372
|
-
description: string;
|
|
373
|
-
multiple: boolean;
|
|
374
|
-
simpleType: string;
|
|
375
|
-
};
|
|
376
|
-
"client-logging": {
|
|
377
|
-
configs: {
|
|
378
|
-
type: string;
|
|
379
|
-
values: string[];
|
|
380
|
-
multiple: boolean;
|
|
381
|
-
description: string;
|
|
382
|
-
path: string;
|
|
383
|
-
}[];
|
|
384
|
-
description: string;
|
|
385
|
-
simpleType: string;
|
|
386
|
-
multiple: boolean;
|
|
387
|
-
};
|
|
388
|
-
"client-overlay": {
|
|
389
|
-
configs: {
|
|
390
|
-
type: string;
|
|
391
|
-
multiple: boolean;
|
|
392
|
-
description: string;
|
|
393
|
-
negatedDescription: string;
|
|
394
|
-
path: string;
|
|
395
|
-
}[];
|
|
396
|
-
description: string;
|
|
397
|
-
simpleType: string;
|
|
398
|
-
multiple: boolean;
|
|
399
|
-
};
|
|
400
|
-
"client-overlay-errors": {
|
|
401
|
-
configs: {
|
|
402
|
-
type: string;
|
|
403
|
-
multiple: boolean;
|
|
404
|
-
description: string;
|
|
405
|
-
/**
|
|
406
|
-
* @typedef {Object} ServerConfiguration
|
|
407
|
-
* @property {"http" | "https" | "spdy" | string} [type]
|
|
408
|
-
* @property {ServerOptions} [options]
|
|
409
|
-
*/
|
|
410
|
-
negatedDescription: string;
|
|
411
|
-
path: string;
|
|
412
|
-
}[];
|
|
413
|
-
description: string;
|
|
414
|
-
simpleType: string;
|
|
415
|
-
/**
|
|
416
|
-
* @typedef {(import("ws").WebSocket | import("sockjs").Connection & { send: import("ws").WebSocket["send"], terminate: import("ws").WebSocket["terminate"], ping: import("ws").WebSocket["ping"] }) & { isAlive?: boolean }} ClientConnection
|
|
417
|
-
*/
|
|
418
|
-
/**
|
|
419
|
-
* @typedef {import("ws").WebSocketServer | import("sockjs").Server & { close: import("ws").WebSocketServer["close"] }} WebSocketServer
|
|
420
|
-
*/
|
|
421
|
-
/**
|
|
422
|
-
* @typedef {{ implementation: WebSocketServer, clients: ClientConnection[] }} WebSocketServerImplementation
|
|
423
|
-
*/
|
|
424
|
-
/**
|
|
425
|
-
* @callback ByPass
|
|
426
|
-
* @param {Request} req
|
|
427
|
-
* @param {Response} res
|
|
428
|
-
* @param {ProxyConfigArrayItem} proxyConfig
|
|
429
|
-
*/
|
|
430
|
-
/**
|
|
431
|
-
* @typedef {{ path?: HttpProxyMiddlewareOptionsFilter | undefined, context?: HttpProxyMiddlewareOptionsFilter | undefined } & { bypass?: ByPass } & HttpProxyMiddlewareOptions } ProxyConfigArrayItem
|
|
432
|
-
*/
|
|
433
|
-
/**
|
|
434
|
-
* @typedef {(ProxyConfigArrayItem | ((req?: Request | undefined, res?: Response | undefined, next?: NextFunction | undefined) => ProxyConfigArrayItem))[]} ProxyConfigArray
|
|
435
|
-
*/
|
|
436
|
-
/**
|
|
437
|
-
* @typedef {{ [url: string]: string | ProxyConfigArrayItem }} ProxyConfigMap
|
|
438
|
-
*/
|
|
439
|
-
/**
|
|
440
|
-
* @typedef {Object} OpenApp
|
|
441
|
-
* @property {string} [name]
|
|
442
|
-
* @property {string[]} [arguments]
|
|
443
|
-
*/
|
|
444
|
-
/**
|
|
445
|
-
* @typedef {Object} Open
|
|
446
|
-
* @property {string | string[] | OpenApp} [app]
|
|
447
|
-
* @property {string | string[]} [target]
|
|
448
|
-
*/
|
|
449
|
-
/**
|
|
450
|
-
* @typedef {Object} NormalizedOpen
|
|
451
|
-
* @property {string} target
|
|
452
|
-
* @property {import("open").Options} options
|
|
453
|
-
*/
|
|
454
|
-
/**
|
|
455
|
-
* @typedef {Object} WebSocketURL
|
|
456
|
-
* @property {string} [hostname]
|
|
457
|
-
* @property {string} [password]
|
|
458
|
-
* @property {string} [pathname]
|
|
459
|
-
* @property {number | string} [port]
|
|
460
|
-
* @property {string} [protocol]
|
|
461
|
-
* @property {string} [username]
|
|
462
|
-
*/
|
|
463
|
-
/**
|
|
464
|
-
* @typedef {boolean | ((error: Error) => void)} OverlayMessageOptions
|
|
465
|
-
*/
|
|
466
|
-
/**
|
|
467
|
-
* @typedef {Object} ClientConfiguration
|
|
468
|
-
* @property {"log" | "info" | "warn" | "error" | "none" | "verbose"} [logging]
|
|
469
|
-
* @property {boolean | { warnings?: OverlayMessageOptions, errors?: OverlayMessageOptions, runtimeErrors?: OverlayMessageOptions }} [overlay]
|
|
470
|
-
* @property {boolean} [progress]
|
|
471
|
-
* @property {boolean | number} [reconnect]
|
|
472
|
-
* @property {"ws" | "sockjs" | string} [webSocketTransport]
|
|
473
|
-
* @property {string | WebSocketURL} [webSocketURL]
|
|
474
|
-
*/
|
|
475
|
-
/**
|
|
476
|
-
* @typedef {Array<{ key: string; value: string }> | Record<string, string | string[]>} Headers
|
|
477
|
-
*/
|
|
478
|
-
/**
|
|
479
|
-
* @typedef {{ name?: string, path?: string, middleware: ExpressRequestHandler | ExpressErrorRequestHandler } | ExpressRequestHandler | ExpressErrorRequestHandler} Middleware
|
|
480
|
-
*/
|
|
481
|
-
/**
|
|
482
|
-
* @typedef {Object} Configuration
|
|
483
|
-
* @property {boolean | string} [ipc]
|
|
484
|
-
* @property {Host} [host]
|
|
485
|
-
* @property {Port} [port]
|
|
486
|
-
* @property {boolean | "only"} [hot]
|
|
487
|
-
* @property {boolean} [liveReload]
|
|
488
|
-
* @property {DevMiddlewareOptions<Request, Response>} [devMiddleware]
|
|
489
|
-
* @property {boolean} [compress]
|
|
490
|
-
* @property {boolean} [magicHtml]
|
|
491
|
-
* @property {"auto" | "all" | string | string[]} [allowedHosts]
|
|
492
|
-
* @property {boolean | ConnectHistoryApiFallbackOptions} [historyApiFallback]
|
|
493
|
-
* @property {boolean | Record<string, never> | BonjourOptions} [bonjour]
|
|
494
|
-
* @property {string | string[] | WatchFiles | Array<string | WatchFiles>} [watchFiles]
|
|
495
|
-
* @property {boolean | string | Static | Array<string | Static>} [static]
|
|
496
|
-
* @property {boolean | ServerOptions} [https]
|
|
497
|
-
* @property {boolean} [http2]
|
|
498
|
-
* @property {"http" | "https" | "spdy" | string | ServerConfiguration} [server]
|
|
499
|
-
* @property {boolean | "sockjs" | "ws" | string | WebSocketServerConfiguration} [webSocketServer]
|
|
500
|
-
* @property {ProxyConfigMap | ProxyConfigArrayItem | ProxyConfigArray} [proxy]
|
|
501
|
-
* @property {boolean | string | Open | Array<string | Open>} [open]
|
|
502
|
-
* @property {boolean} [setupExitSignals]
|
|
503
|
-
* @property {boolean | ClientConfiguration} [client]
|
|
504
|
-
* @property {Headers | ((req: Request, res: Response, context: DevMiddlewareContext<Request, Response>) => Headers)} [headers]
|
|
505
|
-
* @property {(devServer: Server) => void} [onAfterSetupMiddleware]
|
|
506
|
-
* @property {(devServer: Server) => void} [onBeforeSetupMiddleware]
|
|
507
|
-
* @property {(devServer: Server) => void} [onListening]
|
|
508
|
-
* @property {(middlewares: Middleware[], devServer: Server) => Middleware[]} [setupMiddlewares]
|
|
509
|
-
*/
|
|
510
|
-
multiple: boolean;
|
|
511
|
-
};
|
|
512
|
-
"client-overlay-trusted-types-policy-name": {
|
|
513
|
-
configs: {
|
|
514
|
-
description: string;
|
|
515
|
-
multiple: boolean;
|
|
516
|
-
/**
|
|
517
|
-
* @typedef {import("ws").WebSocketServer | import("sockjs").Server & { close: import("ws").WebSocketServer["close"] }} WebSocketServer
|
|
518
|
-
*/
|
|
519
|
-
path: string;
|
|
520
|
-
type: string;
|
|
521
|
-
}[];
|
|
522
|
-
description: string;
|
|
523
|
-
multiple: boolean;
|
|
524
|
-
simpleType: string;
|
|
525
|
-
};
|
|
526
|
-
"client-overlay-warnings": {
|
|
527
|
-
configs: {
|
|
528
|
-
type: string;
|
|
529
|
-
multiple: boolean;
|
|
530
|
-
description: string;
|
|
531
|
-
negatedDescription: string;
|
|
532
|
-
path: string;
|
|
533
|
-
}[];
|
|
534
|
-
description: string;
|
|
535
|
-
simpleType: string;
|
|
536
|
-
multiple: boolean;
|
|
537
|
-
};
|
|
538
|
-
"client-overlay-runtime-errors": {
|
|
539
|
-
configs: {
|
|
540
|
-
type: string;
|
|
541
|
-
multiple: boolean;
|
|
542
|
-
description: string;
|
|
543
|
-
negatedDescription: string;
|
|
544
|
-
path: string;
|
|
545
|
-
}[];
|
|
546
|
-
description: string;
|
|
547
|
-
simpleType: string;
|
|
548
|
-
multiple: boolean;
|
|
549
|
-
};
|
|
550
|
-
"client-progress": {
|
|
551
|
-
configs: {
|
|
552
|
-
type: string;
|
|
553
|
-
multiple: boolean;
|
|
554
|
-
description: string;
|
|
555
|
-
negatedDescription: string;
|
|
556
|
-
path: string;
|
|
557
|
-
}[];
|
|
558
|
-
description: string;
|
|
559
|
-
simpleType: string;
|
|
560
|
-
multiple: boolean;
|
|
561
|
-
};
|
|
562
|
-
"client-reconnect": {
|
|
563
|
-
configs: (
|
|
564
|
-
| {
|
|
565
|
-
type: string;
|
|
566
|
-
multiple: boolean;
|
|
567
|
-
description: string;
|
|
568
|
-
negatedDescription: string;
|
|
569
|
-
path: string;
|
|
570
|
-
}
|
|
571
|
-
| {
|
|
572
|
-
type: string;
|
|
573
|
-
multiple: boolean;
|
|
574
|
-
description: string;
|
|
575
|
-
path: string;
|
|
576
|
-
}
|
|
577
|
-
)[];
|
|
578
|
-
description: string;
|
|
579
|
-
simpleType: string;
|
|
580
|
-
multiple: boolean;
|
|
581
|
-
};
|
|
582
|
-
"client-web-socket-transport": {
|
|
583
|
-
configs: (
|
|
584
|
-
| {
|
|
585
|
-
type: string;
|
|
586
|
-
values: string[];
|
|
587
|
-
multiple: boolean;
|
|
588
|
-
description: string;
|
|
589
|
-
path: string;
|
|
590
|
-
}
|
|
591
|
-
| {
|
|
592
|
-
type: string;
|
|
593
|
-
multiple: boolean;
|
|
594
|
-
description: string;
|
|
595
|
-
path: string;
|
|
596
|
-
}
|
|
597
|
-
)[];
|
|
598
|
-
description: string;
|
|
599
|
-
simpleType: string;
|
|
600
|
-
multiple: boolean;
|
|
601
|
-
};
|
|
602
|
-
"client-web-socket-url": {
|
|
603
|
-
configs: {
|
|
604
|
-
type: string;
|
|
605
|
-
multiple: boolean;
|
|
606
|
-
description: string;
|
|
607
|
-
path: string;
|
|
608
|
-
}[];
|
|
609
|
-
description: string;
|
|
610
|
-
simpleType: string;
|
|
611
|
-
multiple: boolean;
|
|
612
|
-
};
|
|
613
|
-
"client-web-socket-url-hostname": {
|
|
614
|
-
configs: {
|
|
615
|
-
type: string;
|
|
616
|
-
multiple: boolean;
|
|
617
|
-
description: string;
|
|
618
|
-
path: string;
|
|
619
|
-
}[];
|
|
620
|
-
description: string;
|
|
621
|
-
simpleType: string;
|
|
622
|
-
/** @type {T} */ multiple: boolean;
|
|
623
|
-
};
|
|
624
|
-
"client-web-socket-url-password": {
|
|
625
|
-
configs: {
|
|
626
|
-
type: string;
|
|
627
|
-
multiple: boolean;
|
|
628
|
-
description: string;
|
|
629
|
-
path: string;
|
|
630
|
-
}[];
|
|
631
|
-
description: string;
|
|
632
|
-
simpleType: string;
|
|
633
|
-
multiple: boolean;
|
|
634
|
-
};
|
|
635
|
-
"client-web-socket-url-pathname": {
|
|
636
|
-
configs: {
|
|
637
|
-
type: string;
|
|
638
|
-
multiple: boolean;
|
|
639
|
-
description: string;
|
|
640
|
-
path: string;
|
|
641
|
-
}[];
|
|
642
|
-
description: string;
|
|
643
|
-
simpleType: string;
|
|
644
|
-
multiple: boolean;
|
|
645
|
-
};
|
|
646
|
-
"client-web-socket-url-port": {
|
|
647
|
-
configs: {
|
|
648
|
-
type: string;
|
|
649
|
-
multiple: boolean;
|
|
650
|
-
description: string;
|
|
651
|
-
path: string;
|
|
652
|
-
}[];
|
|
653
|
-
description: string;
|
|
654
|
-
simpleType: string;
|
|
655
|
-
multiple: boolean;
|
|
656
|
-
};
|
|
657
|
-
"client-web-socket-url-protocol": {
|
|
658
|
-
configs: (
|
|
659
|
-
| {
|
|
660
|
-
description: string;
|
|
661
|
-
multiple: boolean;
|
|
662
|
-
path: string;
|
|
663
|
-
type: string;
|
|
664
|
-
values: string[];
|
|
665
|
-
}
|
|
666
|
-
| {
|
|
667
|
-
description: string;
|
|
668
|
-
/**
|
|
669
|
-
* @private
|
|
670
|
-
* @type {RequestHandler[]}
|
|
671
|
-
*/
|
|
672
|
-
multiple: boolean;
|
|
673
|
-
path: string;
|
|
674
|
-
type: string;
|
|
675
|
-
/**
|
|
676
|
-
* @type {Socket[]}
|
|
677
|
-
*/
|
|
678
|
-
}
|
|
679
|
-
)[];
|
|
680
|
-
description: string;
|
|
681
|
-
multiple: boolean;
|
|
682
|
-
simpleType: string;
|
|
683
|
-
};
|
|
684
|
-
"client-web-socket-url-username": {
|
|
685
|
-
configs: {
|
|
686
|
-
type: string;
|
|
687
|
-
multiple: boolean;
|
|
688
|
-
description: string;
|
|
689
|
-
path: string;
|
|
690
|
-
}[];
|
|
691
|
-
description: string;
|
|
692
|
-
simpleType: string;
|
|
693
|
-
multiple: boolean;
|
|
694
|
-
};
|
|
695
|
-
compress: {
|
|
696
|
-
configs: {
|
|
697
|
-
type: string;
|
|
698
|
-
multiple: boolean;
|
|
699
|
-
description: string;
|
|
700
|
-
negatedDescription: string;
|
|
701
|
-
path: string;
|
|
702
|
-
}[];
|
|
703
|
-
description: string;
|
|
704
|
-
simpleType: string;
|
|
705
|
-
multiple: boolean;
|
|
706
|
-
};
|
|
707
|
-
"history-api-fallback": {
|
|
708
|
-
configs: {
|
|
709
|
-
type: string;
|
|
710
|
-
multiple: boolean;
|
|
711
|
-
description: string;
|
|
712
|
-
negatedDescription: string;
|
|
713
|
-
path: string;
|
|
714
|
-
}[];
|
|
715
|
-
description: string;
|
|
716
|
-
simpleType: string;
|
|
717
|
-
multiple: boolean;
|
|
718
|
-
};
|
|
719
|
-
host: {
|
|
720
|
-
configs: (
|
|
721
|
-
| {
|
|
722
|
-
description: string;
|
|
723
|
-
multiple: boolean;
|
|
724
|
-
path: string;
|
|
725
|
-
type: string;
|
|
726
|
-
values: string[];
|
|
727
|
-
}
|
|
728
|
-
| {
|
|
729
|
-
description: string;
|
|
730
|
-
multiple: boolean;
|
|
731
|
-
path: string;
|
|
732
|
-
type: string;
|
|
733
|
-
}
|
|
734
|
-
)[];
|
|
735
|
-
description: string;
|
|
736
|
-
simpleType: string;
|
|
737
|
-
multiple: boolean;
|
|
738
|
-
};
|
|
739
|
-
hot: {
|
|
740
|
-
configs: (
|
|
741
|
-
| {
|
|
742
|
-
type: string;
|
|
743
|
-
multiple: boolean;
|
|
744
|
-
description: string;
|
|
745
|
-
negatedDescription: string;
|
|
746
|
-
path: string;
|
|
747
|
-
}
|
|
748
|
-
| {
|
|
749
|
-
type: string;
|
|
750
|
-
values: string[];
|
|
751
|
-
multiple: boolean;
|
|
752
|
-
description: string;
|
|
753
|
-
path: string;
|
|
754
|
-
}
|
|
755
|
-
)[];
|
|
756
|
-
description: string;
|
|
757
|
-
simpleType: string;
|
|
758
|
-
multiple: boolean;
|
|
759
|
-
};
|
|
760
|
-
http2: {
|
|
761
|
-
configs: {
|
|
762
|
-
type: string;
|
|
763
|
-
multiple: boolean;
|
|
764
|
-
description: string;
|
|
765
|
-
negatedDescription: string;
|
|
766
|
-
path: string;
|
|
767
|
-
}[];
|
|
768
|
-
description: string;
|
|
769
|
-
simpleType: string;
|
|
770
|
-
multiple: boolean;
|
|
771
|
-
};
|
|
772
|
-
https: {
|
|
773
|
-
configs: {
|
|
774
|
-
type: string;
|
|
775
|
-
multiple: boolean;
|
|
776
|
-
description: string;
|
|
777
|
-
negatedDescription: string;
|
|
778
|
-
path: string;
|
|
779
|
-
}[];
|
|
780
|
-
description: string;
|
|
781
|
-
simpleType: string;
|
|
782
|
-
multiple: boolean;
|
|
783
|
-
};
|
|
784
|
-
/**
|
|
785
|
-
* @type {string | undefined}
|
|
786
|
-
*/
|
|
787
|
-
"https-ca": {
|
|
788
|
-
configs: {
|
|
789
|
-
type: string;
|
|
790
|
-
multiple: boolean;
|
|
791
|
-
description: string;
|
|
792
|
-
path: string;
|
|
793
|
-
}[];
|
|
794
|
-
description: string;
|
|
795
|
-
simpleType: string;
|
|
796
|
-
multiple: boolean;
|
|
797
|
-
};
|
|
798
|
-
"https-ca-reset": {
|
|
799
|
-
configs: {
|
|
800
|
-
description: string;
|
|
801
|
-
multiple: boolean;
|
|
802
|
-
path: string;
|
|
803
|
-
type: string;
|
|
804
|
-
}[];
|
|
805
|
-
description: string;
|
|
806
|
-
multiple: boolean;
|
|
807
|
-
simpleType: string;
|
|
808
|
-
};
|
|
809
|
-
"https-cacert": {
|
|
810
|
-
configs: {
|
|
811
|
-
type: string;
|
|
812
|
-
multiple: boolean;
|
|
813
|
-
description: string;
|
|
814
|
-
path: string;
|
|
815
|
-
}[];
|
|
816
|
-
description: string;
|
|
817
|
-
simpleType: string;
|
|
818
|
-
multiple: boolean;
|
|
819
|
-
};
|
|
820
|
-
"https-cacert-reset": {
|
|
821
|
-
configs: {
|
|
822
|
-
description: string;
|
|
823
|
-
multiple: boolean;
|
|
824
|
-
path: string;
|
|
825
|
-
type: string;
|
|
826
|
-
}[];
|
|
827
|
-
description: string;
|
|
828
|
-
multiple: boolean;
|
|
829
|
-
simpleType: string;
|
|
830
|
-
};
|
|
831
|
-
"https-cert": {
|
|
832
|
-
configs: {
|
|
833
|
-
type: string;
|
|
834
|
-
multiple: boolean;
|
|
835
|
-
/** @type {ClientConfiguration} */ description: string;
|
|
836
|
-
path: string;
|
|
837
|
-
}[];
|
|
838
|
-
description: string;
|
|
839
|
-
simpleType: string;
|
|
840
|
-
multiple: boolean;
|
|
841
|
-
};
|
|
842
|
-
"https-cert-reset": {
|
|
843
|
-
configs: {
|
|
844
|
-
description: string;
|
|
845
|
-
multiple: boolean;
|
|
846
|
-
path: string;
|
|
847
|
-
type: string;
|
|
848
|
-
}[];
|
|
849
|
-
description: string;
|
|
850
|
-
multiple: boolean;
|
|
851
|
-
simpleType: string;
|
|
852
|
-
};
|
|
853
|
-
"https-crl": {
|
|
854
|
-
configs: {
|
|
855
|
-
description: string;
|
|
856
|
-
multiple: boolean;
|
|
857
|
-
path: string;
|
|
858
|
-
type: string;
|
|
859
|
-
}[];
|
|
860
|
-
description: string;
|
|
861
|
-
multiple: boolean;
|
|
862
|
-
simpleType: string;
|
|
863
|
-
};
|
|
864
|
-
"https-crl-reset": {
|
|
865
|
-
configs: {
|
|
866
|
-
description: string;
|
|
867
|
-
multiple: boolean;
|
|
868
|
-
path: string;
|
|
869
|
-
type: string;
|
|
870
|
-
}[];
|
|
871
|
-
description: string;
|
|
872
|
-
multiple: boolean;
|
|
873
|
-
simpleType: string;
|
|
874
|
-
};
|
|
875
|
-
"https-key": {
|
|
876
|
-
configs: {
|
|
877
|
-
type: string;
|
|
878
|
-
multiple: boolean;
|
|
879
|
-
description: string;
|
|
880
|
-
path: string;
|
|
881
|
-
}[];
|
|
882
|
-
description: string;
|
|
883
|
-
simpleType: string;
|
|
884
|
-
multiple: boolean;
|
|
885
|
-
};
|
|
886
|
-
"https-key-reset": {
|
|
887
|
-
configs: {
|
|
888
|
-
description: string;
|
|
889
|
-
multiple: boolean;
|
|
890
|
-
path: string;
|
|
891
|
-
type: string;
|
|
892
|
-
}[];
|
|
893
|
-
description: string;
|
|
894
|
-
multiple: boolean;
|
|
895
|
-
/** @type {string} */ simpleType: string;
|
|
896
|
-
};
|
|
897
|
-
"https-passphrase": {
|
|
898
|
-
configs: {
|
|
899
|
-
type: string;
|
|
900
|
-
multiple: boolean;
|
|
901
|
-
description: string;
|
|
902
|
-
path: string;
|
|
903
|
-
}[];
|
|
904
|
-
description: string;
|
|
905
|
-
simpleType: string;
|
|
906
|
-
multiple: boolean;
|
|
907
|
-
};
|
|
908
|
-
"https-pfx": {
|
|
909
|
-
configs: {
|
|
910
|
-
type: string;
|
|
911
|
-
multiple: boolean;
|
|
912
|
-
description: string;
|
|
913
|
-
path: string;
|
|
914
|
-
}[];
|
|
915
|
-
description: string;
|
|
916
|
-
simpleType: string;
|
|
917
|
-
multiple: boolean;
|
|
918
|
-
};
|
|
919
|
-
"https-pfx-reset": {
|
|
920
|
-
configs: {
|
|
921
|
-
description: string;
|
|
922
|
-
multiple: boolean;
|
|
923
|
-
path: string;
|
|
924
|
-
type: string;
|
|
925
|
-
}[];
|
|
926
|
-
description: string;
|
|
927
|
-
multiple: boolean;
|
|
928
|
-
simpleType: string;
|
|
929
|
-
};
|
|
930
|
-
"https-request-cert": {
|
|
931
|
-
configs: {
|
|
932
|
-
type: string;
|
|
933
|
-
multiple: boolean;
|
|
934
|
-
description: string;
|
|
935
|
-
negatedDescription: string;
|
|
936
|
-
path: string;
|
|
937
|
-
}[];
|
|
938
|
-
description: string;
|
|
939
|
-
simpleType: string;
|
|
940
|
-
multiple: boolean;
|
|
941
|
-
};
|
|
942
|
-
ipc: {
|
|
943
|
-
configs: (
|
|
944
|
-
| {
|
|
945
|
-
type: string;
|
|
946
|
-
multiple: boolean;
|
|
947
|
-
description: string;
|
|
948
|
-
path: string;
|
|
949
|
-
}
|
|
950
|
-
| {
|
|
951
|
-
type: string;
|
|
952
|
-
values: boolean[];
|
|
953
|
-
multiple: boolean;
|
|
954
|
-
description: string;
|
|
955
|
-
path: string;
|
|
956
|
-
}
|
|
957
|
-
)[];
|
|
958
|
-
description: string;
|
|
959
|
-
simpleType: string;
|
|
960
|
-
multiple: boolean;
|
|
961
|
-
};
|
|
962
|
-
"live-reload": {
|
|
963
|
-
configs: {
|
|
964
|
-
type: string;
|
|
965
|
-
multiple: boolean;
|
|
966
|
-
description: string;
|
|
967
|
-
negatedDescription: string;
|
|
968
|
-
path: string;
|
|
969
|
-
}[];
|
|
970
|
-
description: string;
|
|
971
|
-
simpleType: string;
|
|
972
|
-
/**
|
|
973
|
-
* prependEntry Method for webpack 4
|
|
974
|
-
* @param {any} originalEntry
|
|
975
|
-
* @param {any} newAdditionalEntries
|
|
976
|
-
* @returns {any}
|
|
977
|
-
*/
|
|
978
|
-
multiple: boolean;
|
|
979
|
-
};
|
|
980
|
-
"magic-html": {
|
|
981
|
-
configs: {
|
|
982
|
-
type: string;
|
|
983
|
-
multiple: boolean;
|
|
984
|
-
description: string;
|
|
985
|
-
negatedDescription: string;
|
|
986
|
-
path: string;
|
|
987
|
-
}[];
|
|
988
|
-
description: string;
|
|
989
|
-
simpleType: string;
|
|
990
|
-
multiple: boolean;
|
|
991
|
-
};
|
|
992
|
-
open: {
|
|
993
|
-
configs: (
|
|
994
|
-
| {
|
|
995
|
-
type: string;
|
|
996
|
-
multiple: boolean;
|
|
997
|
-
description: string;
|
|
998
|
-
path: string;
|
|
999
|
-
}
|
|
1000
|
-
| {
|
|
1001
|
-
/** @type {any} */
|
|
1002
|
-
type: string;
|
|
1003
|
-
multiple: boolean;
|
|
1004
|
-
/** @type {any} */ description: string;
|
|
1005
|
-
negatedDescription: string;
|
|
1006
|
-
path: string;
|
|
1007
|
-
}
|
|
1008
|
-
)[];
|
|
1009
|
-
description: string;
|
|
1010
|
-
simpleType: string;
|
|
1011
|
-
multiple: boolean;
|
|
1012
|
-
};
|
|
1013
|
-
"open-app": {
|
|
1014
|
-
configs: {
|
|
1015
|
-
type: string;
|
|
1016
|
-
multiple: boolean;
|
|
1017
|
-
description: string;
|
|
1018
|
-
path: string;
|
|
1019
|
-
}[];
|
|
1020
|
-
description: string;
|
|
1021
|
-
simpleType: string;
|
|
1022
|
-
multiple: boolean;
|
|
1023
|
-
};
|
|
1024
|
-
"open-app-name": {
|
|
1025
|
-
configs: {
|
|
1026
|
-
type: string;
|
|
1027
|
-
multiple: boolean;
|
|
1028
|
-
description: string;
|
|
1029
|
-
path: string;
|
|
1030
|
-
}[];
|
|
1031
|
-
description: string;
|
|
1032
|
-
simpleType: string;
|
|
1033
|
-
multiple: boolean;
|
|
1034
|
-
};
|
|
1035
|
-
"open-app-name-reset": {
|
|
1036
|
-
configs: {
|
|
1037
|
-
type: string;
|
|
1038
|
-
multiple: boolean;
|
|
1039
|
-
description: string;
|
|
1040
|
-
path: string;
|
|
1041
|
-
}[];
|
|
1042
|
-
description: string;
|
|
1043
|
-
simpleType: string;
|
|
1044
|
-
multiple: boolean;
|
|
1045
|
-
};
|
|
1046
|
-
"open-reset": {
|
|
1047
|
-
configs: {
|
|
1048
|
-
type: string;
|
|
1049
|
-
multiple: boolean;
|
|
1050
|
-
description: string;
|
|
1051
|
-
path: string;
|
|
1052
|
-
}[];
|
|
1053
|
-
description: string;
|
|
1054
|
-
simpleType: string;
|
|
1055
|
-
multiple: boolean;
|
|
1056
|
-
};
|
|
1057
|
-
"open-target": {
|
|
1058
|
-
configs: {
|
|
1059
|
-
type: string;
|
|
1060
|
-
multiple: boolean;
|
|
1061
|
-
description: string;
|
|
1062
|
-
path: string;
|
|
1063
|
-
}[];
|
|
1064
|
-
description: string;
|
|
1065
|
-
simpleType: string;
|
|
1066
|
-
multiple: boolean;
|
|
1067
|
-
};
|
|
1068
|
-
"open-target-reset": {
|
|
1069
|
-
configs: {
|
|
1070
|
-
type: string;
|
|
1071
|
-
multiple: boolean;
|
|
1072
|
-
description: string;
|
|
1073
|
-
path: string;
|
|
1074
|
-
}[];
|
|
1075
|
-
description: string;
|
|
1076
|
-
simpleType: string;
|
|
1077
|
-
multiple: boolean;
|
|
1078
|
-
};
|
|
1079
|
-
port: {
|
|
1080
|
-
configs: (
|
|
1081
|
-
| {
|
|
1082
|
-
type: string;
|
|
1083
|
-
multiple: boolean;
|
|
1084
|
-
description: string;
|
|
1085
|
-
path: string;
|
|
1086
|
-
}
|
|
1087
|
-
| {
|
|
1088
|
-
type: string;
|
|
1089
|
-
values: string[];
|
|
1090
|
-
multiple: boolean;
|
|
1091
|
-
description: string;
|
|
1092
|
-
path: string;
|
|
1093
|
-
}
|
|
1094
|
-
)[];
|
|
1095
|
-
description: string;
|
|
1096
|
-
simpleType: string;
|
|
1097
|
-
multiple: boolean;
|
|
1098
|
-
};
|
|
1099
|
-
"server-options-ca": {
|
|
1100
|
-
configs: {
|
|
1101
|
-
description: string;
|
|
1102
|
-
multiple: boolean;
|
|
1103
|
-
path: string;
|
|
1104
|
-
type: string;
|
|
1105
|
-
}[];
|
|
1106
|
-
description: string;
|
|
1107
|
-
multiple: boolean;
|
|
1108
|
-
simpleType: string;
|
|
1109
|
-
};
|
|
1110
|
-
"server-options-ca-reset": {
|
|
1111
|
-
configs: {
|
|
1112
|
-
description: string;
|
|
1113
|
-
multiple: boolean;
|
|
1114
|
-
path: string;
|
|
1115
|
-
type: string;
|
|
1116
|
-
}[];
|
|
1117
|
-
description: string;
|
|
1118
|
-
multiple: boolean;
|
|
1119
|
-
simpleType: string;
|
|
1120
|
-
};
|
|
1121
|
-
"server-options-cacert": {
|
|
1122
|
-
configs: {
|
|
1123
|
-
description: string;
|
|
1124
|
-
multiple: boolean;
|
|
1125
|
-
path: string;
|
|
1126
|
-
type: string;
|
|
1127
|
-
}[];
|
|
1128
|
-
description: string;
|
|
1129
|
-
multiple: boolean;
|
|
1130
|
-
simpleType: string;
|
|
1131
|
-
};
|
|
1132
|
-
"server-options-cacert-reset": {
|
|
1133
|
-
configs: {
|
|
1134
|
-
description: string;
|
|
1135
|
-
multiple: boolean;
|
|
1136
|
-
path: string;
|
|
1137
|
-
type: string;
|
|
1138
|
-
}[];
|
|
1139
|
-
description: string;
|
|
1140
|
-
multiple: boolean;
|
|
1141
|
-
simpleType: string;
|
|
1142
|
-
};
|
|
1143
|
-
"server-options-cert": {
|
|
1144
|
-
configs: {
|
|
1145
|
-
description: string;
|
|
1146
|
-
multiple: boolean;
|
|
1147
|
-
path: string;
|
|
1148
|
-
type: string;
|
|
1149
|
-
}[];
|
|
1150
|
-
description: string;
|
|
1151
|
-
multiple: boolean;
|
|
1152
|
-
simpleType: string;
|
|
1153
|
-
};
|
|
1154
|
-
"server-options-cert-reset": {
|
|
1155
|
-
configs: {
|
|
1156
|
-
description: string;
|
|
1157
|
-
multiple: boolean;
|
|
1158
|
-
path: string;
|
|
1159
|
-
type: string;
|
|
1160
|
-
}[];
|
|
1161
|
-
description: string;
|
|
1162
|
-
multiple: boolean;
|
|
1163
|
-
simpleType: string;
|
|
1164
|
-
};
|
|
1165
|
-
"server-options-crl": {
|
|
1166
|
-
configs: {
|
|
1167
|
-
description: string;
|
|
1168
|
-
multiple: boolean;
|
|
1169
|
-
path: string;
|
|
1170
|
-
type: string;
|
|
1171
|
-
}[];
|
|
1172
|
-
description: string;
|
|
1173
|
-
multiple: boolean;
|
|
1174
|
-
simpleType: string;
|
|
1175
|
-
};
|
|
1176
|
-
"server-options-crl-reset": {
|
|
1177
|
-
configs: {
|
|
1178
|
-
description: string;
|
|
1179
|
-
multiple: boolean;
|
|
1180
|
-
path: string;
|
|
1181
|
-
type: string;
|
|
1182
|
-
}[];
|
|
1183
|
-
description: string;
|
|
1184
|
-
multiple: boolean;
|
|
1185
|
-
simpleType: string;
|
|
1186
|
-
};
|
|
1187
|
-
"server-options-key": {
|
|
1188
|
-
configs: {
|
|
1189
|
-
description: string;
|
|
1190
|
-
multiple: boolean;
|
|
1191
|
-
path: string;
|
|
1192
|
-
type: string;
|
|
1193
|
-
}[];
|
|
1194
|
-
description: string;
|
|
1195
|
-
multiple: boolean;
|
|
1196
|
-
simpleType: string;
|
|
1197
|
-
};
|
|
1198
|
-
"server-options-key-reset": {
|
|
1199
|
-
configs: {
|
|
1200
|
-
description: string;
|
|
1201
|
-
multiple: boolean;
|
|
1202
|
-
path: string;
|
|
1203
|
-
type: string;
|
|
1204
|
-
}[];
|
|
1205
|
-
description: string;
|
|
1206
|
-
multiple: boolean;
|
|
1207
|
-
simpleType: string;
|
|
1208
|
-
};
|
|
1209
|
-
"server-options-passphrase": {
|
|
1210
|
-
configs: {
|
|
1211
|
-
description: string;
|
|
1212
|
-
multiple: boolean;
|
|
1213
|
-
path: string;
|
|
1214
|
-
type: string;
|
|
1215
|
-
}[];
|
|
1216
|
-
description: string;
|
|
1217
|
-
multiple: boolean;
|
|
1218
|
-
simpleType: string;
|
|
1219
|
-
};
|
|
1220
|
-
"server-options-pfx": {
|
|
1221
|
-
configs: {
|
|
1222
|
-
description: string;
|
|
1223
|
-
multiple: boolean;
|
|
1224
|
-
path: string;
|
|
1225
|
-
type: string;
|
|
1226
|
-
}[];
|
|
1227
|
-
description: string;
|
|
1228
|
-
multiple: boolean;
|
|
1229
|
-
simpleType: string;
|
|
1230
|
-
};
|
|
1231
|
-
"server-options-pfx-reset": {
|
|
1232
|
-
configs: {
|
|
1233
|
-
description: string;
|
|
1234
|
-
multiple: boolean;
|
|
1235
|
-
path: string;
|
|
1236
|
-
type: string;
|
|
1237
|
-
}[];
|
|
1238
|
-
description: string;
|
|
1239
|
-
multiple: boolean;
|
|
1240
|
-
simpleType: string;
|
|
1241
|
-
};
|
|
1242
|
-
"server-options-request-cert": {
|
|
1243
|
-
configs: {
|
|
1244
|
-
description: string;
|
|
1245
|
-
negatedDescription: string;
|
|
1246
|
-
multiple: boolean;
|
|
1247
|
-
path: string;
|
|
1248
|
-
type: string;
|
|
1249
|
-
}[];
|
|
1250
|
-
description: string;
|
|
1251
|
-
multiple: boolean;
|
|
1252
|
-
simpleType: string;
|
|
1253
|
-
};
|
|
1254
|
-
"server-type": {
|
|
1255
|
-
configs: {
|
|
1256
|
-
description: string;
|
|
1257
|
-
multiple: boolean;
|
|
1258
|
-
path: string;
|
|
1259
|
-
type: string;
|
|
1260
|
-
values: string[];
|
|
1261
|
-
}[];
|
|
1262
|
-
description: string;
|
|
1263
|
-
multiple: boolean;
|
|
1264
|
-
simpleType: string;
|
|
1265
|
-
};
|
|
1266
|
-
static: {
|
|
1267
|
-
configs: (
|
|
1268
|
-
| {
|
|
1269
|
-
type: string;
|
|
1270
|
-
multiple: boolean;
|
|
1271
|
-
description: string;
|
|
1272
|
-
path: string;
|
|
1273
|
-
}
|
|
1274
|
-
| {
|
|
1275
|
-
type: string;
|
|
1276
|
-
multiple: boolean;
|
|
1277
|
-
description: string;
|
|
1278
|
-
negatedDescription: string;
|
|
1279
|
-
path: string;
|
|
1280
|
-
}
|
|
1281
|
-
)[];
|
|
1282
|
-
description: string;
|
|
1283
|
-
simpleType: string;
|
|
1284
|
-
multiple: boolean;
|
|
1285
|
-
};
|
|
1286
|
-
"static-directory": {
|
|
1287
|
-
configs: {
|
|
1288
|
-
type: string;
|
|
1289
|
-
multiple: boolean;
|
|
1290
|
-
description: string;
|
|
1291
|
-
path: string;
|
|
1292
|
-
}[];
|
|
1293
|
-
description: string;
|
|
1294
|
-
simpleType: string;
|
|
1295
|
-
multiple: boolean;
|
|
1296
|
-
};
|
|
1297
|
-
"static-public-path": {
|
|
1298
|
-
configs: {
|
|
1299
|
-
type: string;
|
|
1300
|
-
multiple: boolean;
|
|
1301
|
-
description: string;
|
|
1302
|
-
path: string;
|
|
1303
|
-
}[];
|
|
1304
|
-
description: string;
|
|
1305
|
-
simpleType: string;
|
|
1306
|
-
multiple: boolean;
|
|
1307
|
-
};
|
|
1308
|
-
"static-public-path-reset": {
|
|
1309
|
-
configs: {
|
|
1310
|
-
type: string;
|
|
1311
|
-
multiple: boolean;
|
|
1312
|
-
description: string;
|
|
1313
|
-
path: string;
|
|
1314
|
-
}[];
|
|
1315
|
-
description: string;
|
|
1316
|
-
simpleType: string;
|
|
1317
|
-
multiple: boolean;
|
|
1318
|
-
};
|
|
1319
|
-
"static-reset": {
|
|
1320
|
-
configs: {
|
|
1321
|
-
type: string;
|
|
1322
|
-
multiple: boolean;
|
|
1323
|
-
description: string;
|
|
1324
|
-
path: string;
|
|
1325
|
-
}[];
|
|
1326
|
-
description: string;
|
|
1327
|
-
simpleType: string;
|
|
1328
|
-
multiple: boolean /** @type {any} */;
|
|
1329
|
-
};
|
|
1330
|
-
/** @type {any} */
|
|
1331
|
-
"static-serve-index": {
|
|
1332
|
-
configs: {
|
|
1333
|
-
type: string;
|
|
1334
|
-
multiple: boolean;
|
|
1335
|
-
description: string;
|
|
1336
|
-
negatedDescription: string;
|
|
1337
|
-
path: string;
|
|
1338
|
-
}[];
|
|
1339
|
-
description: string;
|
|
1340
|
-
simpleType: string;
|
|
1341
|
-
multiple: boolean;
|
|
1342
|
-
};
|
|
1343
|
-
"static-watch": {
|
|
1344
|
-
configs: {
|
|
1345
|
-
type: string;
|
|
1346
|
-
multiple: boolean;
|
|
1347
|
-
description: string;
|
|
1348
|
-
negatedDescription: string;
|
|
1349
|
-
path: string;
|
|
1350
|
-
}[];
|
|
1351
|
-
description: string;
|
|
1352
|
-
simpleType: string;
|
|
1353
|
-
multiple: boolean;
|
|
1354
|
-
};
|
|
1355
|
-
"watch-files": {
|
|
1356
|
-
configs: {
|
|
1357
|
-
type: string;
|
|
1358
|
-
multiple: boolean;
|
|
1359
|
-
description: string;
|
|
1360
|
-
path: string;
|
|
1361
|
-
}[];
|
|
1362
|
-
description: string;
|
|
1363
|
-
simpleType: string;
|
|
1364
|
-
multiple: boolean;
|
|
1365
|
-
};
|
|
1366
|
-
"watch-files-reset": {
|
|
1367
|
-
configs: {
|
|
1368
|
-
type: string;
|
|
1369
|
-
multiple: boolean;
|
|
1370
|
-
description: string;
|
|
1371
|
-
path: string;
|
|
1372
|
-
}[];
|
|
1373
|
-
description: string;
|
|
1374
|
-
simpleType: string;
|
|
1375
|
-
multiple: boolean;
|
|
1376
|
-
};
|
|
1377
|
-
"web-socket-server": {
|
|
1378
|
-
configs: (
|
|
1379
|
-
| {
|
|
1380
|
-
description: string;
|
|
1381
|
-
negatedDescription: string;
|
|
1382
|
-
multiple: boolean;
|
|
1383
|
-
path: string;
|
|
1384
|
-
type: string;
|
|
1385
|
-
values: boolean[];
|
|
1386
|
-
}
|
|
1387
|
-
| {
|
|
1388
|
-
description: string;
|
|
1389
|
-
multiple: boolean;
|
|
1390
|
-
path: string;
|
|
1391
|
-
type: string;
|
|
1392
|
-
values: string[];
|
|
1393
|
-
}
|
|
1394
|
-
| {
|
|
1395
|
-
description: string;
|
|
1396
|
-
multiple: boolean;
|
|
1397
|
-
path: string;
|
|
1398
|
-
type: string;
|
|
1399
|
-
}
|
|
1400
|
-
)[];
|
|
1401
|
-
description: string;
|
|
1402
|
-
simpleType: string;
|
|
1403
|
-
multiple: boolean;
|
|
1404
|
-
};
|
|
1405
|
-
"web-socket-server-type": {
|
|
1406
|
-
configs: (
|
|
1407
|
-
| {
|
|
1408
|
-
description: string;
|
|
1409
|
-
multiple: boolean;
|
|
1410
|
-
path: string;
|
|
1411
|
-
type: string;
|
|
1412
|
-
values: string[];
|
|
1413
|
-
}
|
|
1414
|
-
| {
|
|
1415
|
-
description: string;
|
|
1416
|
-
multiple: boolean;
|
|
1417
|
-
path: string;
|
|
1418
|
-
type: string;
|
|
1419
|
-
}
|
|
1420
|
-
)[];
|
|
1421
|
-
description: string;
|
|
1422
|
-
simpleType: string;
|
|
1423
|
-
multiple: boolean;
|
|
1424
|
-
};
|
|
1425
|
-
};
|
|
1426
|
-
readonly processArguments: (
|
|
1427
|
-
args: Record<string, import("../bin/process-arguments").Argument>,
|
|
1428
|
-
config: any,
|
|
1429
|
-
values: Record<
|
|
1430
|
-
string,
|
|
1431
|
-
| string
|
|
1432
|
-
| number
|
|
1433
|
-
| boolean
|
|
1434
|
-
| RegExp
|
|
1435
|
-
| (string | number | boolean | RegExp)[]
|
|
1436
|
-
>
|
|
1437
|
-
) => import("../bin/process-arguments").Problem[] | null;
|
|
1438
|
-
};
|
|
1439
4
|
static get schema(): {
|
|
1440
5
|
title: string;
|
|
1441
6
|
type: string;
|
|
@@ -1523,147 +88,6 @@ declare class Server {
|
|
|
1523
88
|
$ref: string;
|
|
1524
89
|
};
|
|
1525
90
|
webSocketTransport: {
|
|
1526
|
-
/** @typedef {import("https").ServerOptions & { spdy?: { plain?: boolean | undefined, ssl?: boolean | undefined, 'x-forwarded-for'?: string | undefined, protocol?: string | undefined, protocols?: string[] | undefined }}} ServerOptions */
|
|
1527
|
-
/**
|
|
1528
|
-
* @template Request, Response
|
|
1529
|
-
* @typedef {import("webpack-dev-middleware").Options<Request, Response>} DevMiddlewareOptions
|
|
1530
|
-
*/
|
|
1531
|
-
/**
|
|
1532
|
-
* @template Request, Response
|
|
1533
|
-
* @typedef {import("webpack-dev-middleware").Context<Request, Response>} DevMiddlewareContext
|
|
1534
|
-
*/
|
|
1535
|
-
/**
|
|
1536
|
-
* @typedef {"local-ip" | "local-ipv4" | "local-ipv6" | string} Host
|
|
1537
|
-
*/
|
|
1538
|
-
/**
|
|
1539
|
-
* @typedef {number | string | "auto"} Port
|
|
1540
|
-
*/
|
|
1541
|
-
/**
|
|
1542
|
-
* @typedef {Object} WatchFiles
|
|
1543
|
-
* @property {string | string[]} paths
|
|
1544
|
-
* @property {WatchOptions & { aggregateTimeout?: number, ignored?: WatchOptions["ignored"], poll?: number | boolean }} [options]
|
|
1545
|
-
*/
|
|
1546
|
-
/**
|
|
1547
|
-
* @typedef {Object} Static
|
|
1548
|
-
* @property {string} [directory]
|
|
1549
|
-
* @property {string | string[]} [publicPath]
|
|
1550
|
-
* @property {boolean | ServeIndexOptions} [serveIndex]
|
|
1551
|
-
* @property {ServeStaticOptions} [staticOptions]
|
|
1552
|
-
* @property {boolean | WatchOptions & { aggregateTimeout?: number, ignored?: WatchOptions["ignored"], poll?: number | boolean }} [watch]
|
|
1553
|
-
*/
|
|
1554
|
-
/**
|
|
1555
|
-
* @typedef {Object} NormalizedStatic
|
|
1556
|
-
* @property {string} directory
|
|
1557
|
-
* @property {string[]} publicPath
|
|
1558
|
-
* @property {false | ServeIndexOptions} serveIndex
|
|
1559
|
-
* @property {ServeStaticOptions} staticOptions
|
|
1560
|
-
* @property {false | WatchOptions} watch
|
|
1561
|
-
*/
|
|
1562
|
-
/**
|
|
1563
|
-
* @typedef {Object} ServerConfiguration
|
|
1564
|
-
* @property {"http" | "https" | "spdy" | string} [type]
|
|
1565
|
-
* @property {ServerOptions} [options]
|
|
1566
|
-
*/
|
|
1567
|
-
/**
|
|
1568
|
-
* @typedef {Object} WebSocketServerConfiguration
|
|
1569
|
-
* @property {"sockjs" | "ws" | string | Function} [type]
|
|
1570
|
-
* @property {Record<string, any>} [options]
|
|
1571
|
-
*/
|
|
1572
|
-
/**
|
|
1573
|
-
* @typedef {(import("ws").WebSocket | import("sockjs").Connection & { send: import("ws").WebSocket["send"], terminate: import("ws").WebSocket["terminate"], ping: import("ws").WebSocket["ping"] }) & { isAlive?: boolean }} ClientConnection
|
|
1574
|
-
*/
|
|
1575
|
-
/**
|
|
1576
|
-
* @typedef {import("ws").WebSocketServer | import("sockjs").Server & { close: import("ws").WebSocketServer["close"] }} WebSocketServer
|
|
1577
|
-
*/
|
|
1578
|
-
/**
|
|
1579
|
-
* @typedef {{ implementation: WebSocketServer, clients: ClientConnection[] }} WebSocketServerImplementation
|
|
1580
|
-
*/
|
|
1581
|
-
/**
|
|
1582
|
-
* @callback ByPass
|
|
1583
|
-
* @param {Request} req
|
|
1584
|
-
* @param {Response} res
|
|
1585
|
-
* @param {ProxyConfigArrayItem} proxyConfig
|
|
1586
|
-
*/
|
|
1587
|
-
/**
|
|
1588
|
-
* @typedef {{ path?: HttpProxyMiddlewareOptionsFilter | undefined, context?: HttpProxyMiddlewareOptionsFilter | undefined } & { bypass?: ByPass } & HttpProxyMiddlewareOptions } ProxyConfigArrayItem
|
|
1589
|
-
*/
|
|
1590
|
-
/**
|
|
1591
|
-
* @typedef {(ProxyConfigArrayItem | ((req?: Request | undefined, res?: Response | undefined, next?: NextFunction | undefined) => ProxyConfigArrayItem))[]} ProxyConfigArray
|
|
1592
|
-
*/
|
|
1593
|
-
/**
|
|
1594
|
-
* @typedef {{ [url: string]: string | ProxyConfigArrayItem }} ProxyConfigMap
|
|
1595
|
-
*/
|
|
1596
|
-
/**
|
|
1597
|
-
* @typedef {Object} OpenApp
|
|
1598
|
-
* @property {string} [name]
|
|
1599
|
-
* @property {string[]} [arguments]
|
|
1600
|
-
*/
|
|
1601
|
-
/**
|
|
1602
|
-
* @typedef {Object} Open
|
|
1603
|
-
* @property {string | string[] | OpenApp} [app]
|
|
1604
|
-
* @property {string | string[]} [target]
|
|
1605
|
-
*/
|
|
1606
|
-
/**
|
|
1607
|
-
* @typedef {Object} NormalizedOpen
|
|
1608
|
-
* @property {string} target
|
|
1609
|
-
* @property {import("open").Options} options
|
|
1610
|
-
*/
|
|
1611
|
-
/**
|
|
1612
|
-
* @typedef {Object} WebSocketURL
|
|
1613
|
-
* @property {string} [hostname]
|
|
1614
|
-
* @property {string} [password]
|
|
1615
|
-
* @property {string} [pathname]
|
|
1616
|
-
* @property {number | string} [port]
|
|
1617
|
-
* @property {string} [protocol]
|
|
1618
|
-
* @property {string} [username]
|
|
1619
|
-
*/
|
|
1620
|
-
/**
|
|
1621
|
-
* @typedef {boolean | ((error: Error) => void)} OverlayMessageOptions
|
|
1622
|
-
*/
|
|
1623
|
-
/**
|
|
1624
|
-
* @typedef {Object} ClientConfiguration
|
|
1625
|
-
* @property {"log" | "info" | "warn" | "error" | "none" | "verbose"} [logging]
|
|
1626
|
-
* @property {boolean | { warnings?: OverlayMessageOptions, errors?: OverlayMessageOptions, runtimeErrors?: OverlayMessageOptions }} [overlay]
|
|
1627
|
-
* @property {boolean} [progress]
|
|
1628
|
-
* @property {boolean | number} [reconnect]
|
|
1629
|
-
* @property {"ws" | "sockjs" | string} [webSocketTransport]
|
|
1630
|
-
* @property {string | WebSocketURL} [webSocketURL]
|
|
1631
|
-
*/
|
|
1632
|
-
/**
|
|
1633
|
-
* @typedef {Array<{ key: string; value: string }> | Record<string, string | string[]>} Headers
|
|
1634
|
-
*/
|
|
1635
|
-
/**
|
|
1636
|
-
* @typedef {{ name?: string, path?: string, middleware: ExpressRequestHandler | ExpressErrorRequestHandler } | ExpressRequestHandler | ExpressErrorRequestHandler} Middleware
|
|
1637
|
-
*/
|
|
1638
|
-
/**
|
|
1639
|
-
* @typedef {Object} Configuration
|
|
1640
|
-
* @property {boolean | string} [ipc]
|
|
1641
|
-
* @property {Host} [host]
|
|
1642
|
-
* @property {Port} [port]
|
|
1643
|
-
* @property {boolean | "only"} [hot]
|
|
1644
|
-
* @property {boolean} [liveReload]
|
|
1645
|
-
* @property {DevMiddlewareOptions<Request, Response>} [devMiddleware]
|
|
1646
|
-
* @property {boolean} [compress]
|
|
1647
|
-
* @property {boolean} [magicHtml]
|
|
1648
|
-
* @property {"auto" | "all" | string | string[]} [allowedHosts]
|
|
1649
|
-
* @property {boolean | ConnectHistoryApiFallbackOptions} [historyApiFallback]
|
|
1650
|
-
* @property {boolean | Record<string, never> | BonjourOptions} [bonjour]
|
|
1651
|
-
* @property {string | string[] | WatchFiles | Array<string | WatchFiles>} [watchFiles]
|
|
1652
|
-
* @property {boolean | string | Static | Array<string | Static>} [static]
|
|
1653
|
-
* @property {boolean | ServerOptions} [https]
|
|
1654
|
-
* @property {boolean} [http2]
|
|
1655
|
-
* @property {"http" | "https" | "spdy" | string | ServerConfiguration} [server]
|
|
1656
|
-
* @property {boolean | "sockjs" | "ws" | string | WebSocketServerConfiguration} [webSocketServer]
|
|
1657
|
-
* @property {ProxyConfigMap | ProxyConfigArrayItem | ProxyConfigArray} [proxy]
|
|
1658
|
-
* @property {boolean | string | Open | Array<string | Open>} [open]
|
|
1659
|
-
* @property {boolean} [setupExitSignals]
|
|
1660
|
-
* @property {boolean | ClientConfiguration} [client]
|
|
1661
|
-
* @property {Headers | ((req: Request, res: Response, context: DevMiddlewareContext<Request, Response>) => Headers)} [headers]
|
|
1662
|
-
* @property {(devServer: Server) => void} [onAfterSetupMiddleware]
|
|
1663
|
-
* @property {(devServer: Server) => void} [onBeforeSetupMiddleware]
|
|
1664
|
-
* @property {(devServer: Server) => void} [onListening]
|
|
1665
|
-
* @property {(middlewares: Middleware[], devServer: Server) => Middleware[]} [setupMiddlewares]
|
|
1666
|
-
*/
|
|
1667
91
|
$ref: string;
|
|
1668
92
|
};
|
|
1669
93
|
webSocketURL: {
|
|
@@ -1676,150 +100,143 @@ declare class Server {
|
|
|
1676
100
|
)[];
|
|
1677
101
|
};
|
|
1678
102
|
ClientLogging: {
|
|
1679
|
-
/**
|
|
1680
|
-
* @template Request, Response
|
|
1681
|
-
* @typedef {import("webpack-dev-middleware").Options<Request, Response>} DevMiddlewareOptions
|
|
1682
|
-
*/
|
|
1683
|
-
/**
|
|
1684
|
-
* @template Request, Response
|
|
1685
|
-
* @typedef {import("webpack-dev-middleware").Context<Request, Response>} DevMiddlewareContext
|
|
1686
|
-
*/
|
|
1687
|
-
/**
|
|
1688
|
-
* @typedef {"local-ip" | "local-ipv4" | "local-ipv6" | string} Host
|
|
1689
|
-
*/
|
|
1690
|
-
/**
|
|
1691
|
-
* @typedef {number | string | "auto"} Port
|
|
1692
|
-
*/
|
|
1693
|
-
/**
|
|
1694
|
-
* @typedef {Object} WatchFiles
|
|
1695
|
-
* @property {string | string[]} paths
|
|
1696
|
-
* @property {WatchOptions & { aggregateTimeout?: number, ignored?: WatchOptions["ignored"], poll?: number | boolean }} [options]
|
|
1697
|
-
*/
|
|
1698
|
-
/**
|
|
1699
|
-
* @typedef {Object} Static
|
|
1700
|
-
* @property {string} [directory]
|
|
1701
|
-
* @property {string | string[]} [publicPath]
|
|
1702
|
-
* @property {boolean | ServeIndexOptions} [serveIndex]
|
|
1703
|
-
* @property {ServeStaticOptions} [staticOptions]
|
|
1704
|
-
* @property {boolean | WatchOptions & { aggregateTimeout?: number, ignored?: WatchOptions["ignored"], poll?: number | boolean }} [watch]
|
|
1705
|
-
*/
|
|
1706
|
-
/**
|
|
1707
|
-
* @typedef {Object} NormalizedStatic
|
|
1708
|
-
* @property {string} directory
|
|
1709
|
-
* @property {string[]} publicPath
|
|
1710
|
-
* @property {false | ServeIndexOptions} serveIndex
|
|
1711
|
-
* @property {ServeStaticOptions} staticOptions
|
|
1712
|
-
* @property {false | WatchOptions} watch
|
|
1713
|
-
*/
|
|
1714
|
-
/**
|
|
1715
|
-
* @typedef {Object} ServerConfiguration
|
|
1716
|
-
* @property {"http" | "https" | "spdy" | string} [type]
|
|
1717
|
-
* @property {ServerOptions} [options]
|
|
1718
|
-
*/
|
|
1719
|
-
/**
|
|
1720
|
-
* @typedef {Object} WebSocketServerConfiguration
|
|
1721
|
-
* @property {"sockjs" | "ws" | string | Function} [type]
|
|
1722
|
-
* @property {Record<string, any>} [options]
|
|
1723
|
-
*/
|
|
1724
|
-
/**
|
|
1725
|
-
* @typedef {(import("ws").WebSocket | import("sockjs").Connection & { send: import("ws").WebSocket["send"], terminate: import("ws").WebSocket["terminate"], ping: import("ws").WebSocket["ping"] }) & { isAlive?: boolean }} ClientConnection
|
|
1726
|
-
*/
|
|
1727
|
-
/**
|
|
1728
|
-
* @typedef {import("ws").WebSocketServer | import("sockjs").Server & { close: import("ws").WebSocketServer["close"] }} WebSocketServer
|
|
1729
|
-
*/
|
|
1730
|
-
/**
|
|
1731
|
-
* @typedef {{ implementation: WebSocketServer, clients: ClientConnection[] }} WebSocketServerImplementation
|
|
1732
|
-
*/
|
|
1733
|
-
/**
|
|
1734
|
-
* @callback ByPass
|
|
1735
|
-
* @param {Request} req
|
|
1736
|
-
* @param {Response} res
|
|
1737
|
-
* @param {ProxyConfigArrayItem} proxyConfig
|
|
1738
|
-
*/
|
|
1739
|
-
/**
|
|
1740
|
-
* @typedef {{ path?: HttpProxyMiddlewareOptionsFilter | undefined, context?: HttpProxyMiddlewareOptionsFilter | undefined } & { bypass?: ByPass } & HttpProxyMiddlewareOptions } ProxyConfigArrayItem
|
|
1741
|
-
*/
|
|
1742
|
-
/**
|
|
1743
|
-
* @typedef {(ProxyConfigArrayItem | ((req?: Request | undefined, res?: Response | undefined, next?: NextFunction | undefined) => ProxyConfigArrayItem))[]} ProxyConfigArray
|
|
1744
|
-
*/
|
|
1745
|
-
/**
|
|
1746
|
-
* @typedef {{ [url: string]: string | ProxyConfigArrayItem }} ProxyConfigMap
|
|
1747
|
-
*/
|
|
1748
|
-
/**
|
|
1749
|
-
* @typedef {Object} OpenApp
|
|
1750
|
-
* @property {string} [name]
|
|
1751
|
-
* @property {string[]} [arguments]
|
|
1752
|
-
*/
|
|
1753
|
-
/**
|
|
1754
|
-
* @typedef {Object} Open
|
|
1755
|
-
* @property {string | string[] | OpenApp} [app]
|
|
1756
|
-
* @property {string | string[]} [target]
|
|
1757
|
-
*/
|
|
1758
|
-
/**
|
|
1759
|
-
* @typedef {Object} NormalizedOpen
|
|
1760
|
-
* @property {string} target
|
|
1761
|
-
* @property {import("open").Options} options
|
|
1762
|
-
*/
|
|
1763
|
-
/**
|
|
1764
|
-
* @typedef {Object} WebSocketURL
|
|
1765
|
-
* @property {string} [hostname]
|
|
1766
|
-
* @property {string} [password]
|
|
1767
|
-
* @property {string} [pathname]
|
|
1768
|
-
* @property {number | string} [port]
|
|
1769
|
-
* @property {string} [protocol]
|
|
1770
|
-
* @property {string} [username]
|
|
1771
|
-
*/
|
|
1772
|
-
/**
|
|
1773
|
-
* @typedef {boolean | ((error: Error) => void)} OverlayMessageOptions
|
|
1774
|
-
*/
|
|
1775
|
-
/**
|
|
1776
|
-
* @typedef {Object} ClientConfiguration
|
|
1777
|
-
* @property {"log" | "info" | "warn" | "error" | "none" | "verbose"} [logging]
|
|
1778
|
-
* @property {boolean | { warnings?: OverlayMessageOptions, errors?: OverlayMessageOptions, runtimeErrors?: OverlayMessageOptions }} [overlay]
|
|
1779
|
-
* @property {boolean} [progress]
|
|
1780
|
-
* @property {boolean | number} [reconnect]
|
|
1781
|
-
* @property {"ws" | "sockjs" | string} [webSocketTransport]
|
|
1782
|
-
* @property {string | WebSocketURL} [webSocketURL]
|
|
1783
|
-
*/
|
|
1784
|
-
/**
|
|
1785
|
-
* @typedef {Array<{ key: string; value: string }> | Record<string, string | string[]>} Headers
|
|
1786
|
-
*/
|
|
1787
|
-
/**
|
|
1788
|
-
* @typedef {{ name?: string, path?: string, middleware: ExpressRequestHandler | ExpressErrorRequestHandler } | ExpressRequestHandler | ExpressErrorRequestHandler} Middleware
|
|
1789
|
-
*/
|
|
1790
|
-
/**
|
|
1791
|
-
* @typedef {Object} Configuration
|
|
1792
|
-
* @property {boolean | string} [ipc]
|
|
1793
|
-
* @property {Host} [host]
|
|
1794
|
-
* @property {Port} [port]
|
|
1795
|
-
* @property {boolean | "only"} [hot]
|
|
1796
|
-
* @property {boolean} [liveReload]
|
|
1797
|
-
* @property {DevMiddlewareOptions<Request, Response>} [devMiddleware]
|
|
1798
|
-
* @property {boolean} [compress]
|
|
1799
|
-
* @property {boolean} [magicHtml]
|
|
1800
|
-
* @property {"auto" | "all" | string | string[]} [allowedHosts]
|
|
1801
|
-
* @property {boolean | ConnectHistoryApiFallbackOptions} [historyApiFallback]
|
|
1802
|
-
* @property {boolean | Record<string, never> | BonjourOptions} [bonjour]
|
|
1803
|
-
* @property {string | string[] | WatchFiles | Array<string | WatchFiles>} [watchFiles]
|
|
1804
|
-
* @property {boolean | string | Static | Array<string | Static>} [static]
|
|
1805
|
-
* @property {boolean | ServerOptions} [https]
|
|
1806
|
-
* @property {boolean} [http2]
|
|
1807
|
-
* @property {"http" | "https" | "spdy" | string | ServerConfiguration} [server]
|
|
1808
|
-
* @property {boolean | "sockjs" | "ws" | string | WebSocketServerConfiguration} [webSocketServer]
|
|
1809
|
-
* @property {ProxyConfigMap | ProxyConfigArrayItem | ProxyConfigArray} [proxy]
|
|
1810
|
-
* @property {boolean | string | Open | Array<string | Open>} [open]
|
|
1811
|
-
* @property {boolean} [setupExitSignals]
|
|
1812
|
-
* @property {boolean | ClientConfiguration} [client]
|
|
1813
|
-
* @property {Headers | ((req: Request, res: Response, context: DevMiddlewareContext<Request, Response>) => Headers)} [headers]
|
|
1814
|
-
* @property {(devServer: Server) => void} [onAfterSetupMiddleware]
|
|
1815
|
-
* @property {(devServer: Server) => void} [onBeforeSetupMiddleware]
|
|
1816
|
-
* @property {(devServer: Server) => void} [onListening]
|
|
1817
|
-
* @property {(middlewares: Middleware[], devServer: Server) => Middleware[]} [setupMiddlewares]
|
|
1818
|
-
*/
|
|
1819
103
|
enum: string[];
|
|
1820
104
|
description: string;
|
|
1821
105
|
link: string;
|
|
1822
106
|
};
|
|
107
|
+
/**
|
|
108
|
+
* @template Request, Response
|
|
109
|
+
* @typedef {import("webpack-dev-middleware").Context<IncomingMessage, ServerResponse>} DevMiddlewareContext
|
|
110
|
+
*/
|
|
111
|
+
/**
|
|
112
|
+
* @typedef {"local-ip" | "local-ipv4" | "local-ipv6" | string} Host
|
|
113
|
+
*/
|
|
114
|
+
/**
|
|
115
|
+
* @typedef {number | string | "auto"} Port
|
|
116
|
+
*/
|
|
117
|
+
/**
|
|
118
|
+
* @typedef {Object} WatchFiles
|
|
119
|
+
* @property {string | string[]} paths
|
|
120
|
+
* @property {WatchOptions & { aggregateTimeout?: number, ignored?: WatchOptions["ignored"], poll?: number | boolean }} [options]
|
|
121
|
+
*/
|
|
122
|
+
/**
|
|
123
|
+
* @typedef {Object} Static
|
|
124
|
+
* @property {string} [directory]
|
|
125
|
+
* @property {string | string[]} [publicPath]
|
|
126
|
+
* @property {boolean | ServeIndexOptions} [serveIndex]
|
|
127
|
+
* @property {ServeStaticOptions} [staticOptions]
|
|
128
|
+
* @property {boolean | WatchOptions & { aggregateTimeout?: number, ignored?: WatchOptions["ignored"], poll?: number | boolean }} [watch]
|
|
129
|
+
*/
|
|
130
|
+
/**
|
|
131
|
+
* @typedef {Object} NormalizedStatic
|
|
132
|
+
* @property {string} directory
|
|
133
|
+
* @property {string[]} publicPath
|
|
134
|
+
* @property {false | ServeIndexOptions} serveIndex
|
|
135
|
+
* @property {ServeStaticOptions} staticOptions
|
|
136
|
+
* @property {false | WatchOptions} watch
|
|
137
|
+
*/
|
|
138
|
+
/**
|
|
139
|
+
* @typedef {Object} ServerConfiguration
|
|
140
|
+
* @property {"http" | "https" | "spdy" | string} [type]
|
|
141
|
+
* @property {ServerOptions} [options]
|
|
142
|
+
*/
|
|
143
|
+
/**
|
|
144
|
+
* @typedef {Object} WebSocketServerConfiguration
|
|
145
|
+
* @property {"sockjs" | "ws" | string | Function} [type]
|
|
146
|
+
* @property {Record<string, any>} [options]
|
|
147
|
+
*/
|
|
148
|
+
/**
|
|
149
|
+
* @typedef {(import("ws").WebSocket | import("sockjs").Connection & { send: import("ws").WebSocket["send"], terminate: import("ws").WebSocket["terminate"], ping: import("ws").WebSocket["ping"] }) & { isAlive?: boolean }} ClientConnection
|
|
150
|
+
*/
|
|
151
|
+
/**
|
|
152
|
+
* @typedef {import("ws").WebSocketServer | import("sockjs").Server & { close: import("ws").WebSocketServer["close"] }} WebSocketServer
|
|
153
|
+
*/
|
|
154
|
+
/**
|
|
155
|
+
* @typedef {{ implementation: WebSocketServer, clients: ClientConnection[] }} WebSocketServerImplementation
|
|
156
|
+
*/
|
|
157
|
+
/**
|
|
158
|
+
* @callback ByPass
|
|
159
|
+
* @param {Request} req
|
|
160
|
+
* @param {Response} res
|
|
161
|
+
* @param {ProxyConfigArrayItem} proxyConfig
|
|
162
|
+
*/
|
|
163
|
+
/**
|
|
164
|
+
* @typedef {{ path?: HttpProxyMiddlewareOptionsFilter | undefined, context?: HttpProxyMiddlewareOptionsFilter | undefined } & { bypass?: ByPass } & HttpProxyMiddlewareOptions } ProxyConfigArrayItem
|
|
165
|
+
*/
|
|
166
|
+
/**
|
|
167
|
+
* @typedef {(ProxyConfigArrayItem | ((req?: Request | undefined, res?: Response | undefined, next?: NextFunction | undefined) => ProxyConfigArrayItem))[]} ProxyConfigArray
|
|
168
|
+
*/
|
|
169
|
+
/**
|
|
170
|
+
* @typedef {{ [url: string]: string | ProxyConfigArrayItem }} ProxyConfigMap
|
|
171
|
+
*/
|
|
172
|
+
/**
|
|
173
|
+
* @typedef {Object} OpenApp
|
|
174
|
+
* @property {string} [name]
|
|
175
|
+
* @property {string[]} [arguments]
|
|
176
|
+
*/
|
|
177
|
+
/**
|
|
178
|
+
* @typedef {Object} Open
|
|
179
|
+
* @property {string | string[] | OpenApp} [app]
|
|
180
|
+
* @property {string | string[]} [target]
|
|
181
|
+
*/
|
|
182
|
+
/**
|
|
183
|
+
* @typedef {Object} NormalizedOpen
|
|
184
|
+
* @property {string} target
|
|
185
|
+
* @property {import("open").Options} options
|
|
186
|
+
*/
|
|
187
|
+
/**
|
|
188
|
+
* @typedef {Object} WebSocketURL
|
|
189
|
+
* @property {string} [hostname]
|
|
190
|
+
* @property {string} [password]
|
|
191
|
+
* @property {string} [pathname]
|
|
192
|
+
* @property {number | string} [port]
|
|
193
|
+
* @property {string} [protocol]
|
|
194
|
+
* @property {string} [username]
|
|
195
|
+
*/
|
|
196
|
+
/**
|
|
197
|
+
* @typedef {boolean | ((error: Error) => void)} OverlayMessageOptions
|
|
198
|
+
*/
|
|
199
|
+
/**
|
|
200
|
+
* @typedef {Object} ClientConfiguration
|
|
201
|
+
* @property {"log" | "info" | "warn" | "error" | "none" | "verbose"} [logging]
|
|
202
|
+
* @property {boolean | { warnings?: OverlayMessageOptions, errors?: OverlayMessageOptions, runtimeErrors?: OverlayMessageOptions }} [overlay]
|
|
203
|
+
* @property {boolean} [progress]
|
|
204
|
+
* @property {boolean | number} [reconnect]
|
|
205
|
+
* @property {"ws" | "sockjs" | string} [webSocketTransport]
|
|
206
|
+
* @property {string | WebSocketURL} [webSocketURL]
|
|
207
|
+
*/
|
|
208
|
+
/**
|
|
209
|
+
* @typedef {Array<{ key: string; value: string }> | Record<string, string | string[]>} Headers
|
|
210
|
+
*/
|
|
211
|
+
/**
|
|
212
|
+
* @typedef {{ name?: string, path?: string, middleware: ExpressRequestHandler | ExpressErrorRequestHandler } | ExpressRequestHandler | ExpressErrorRequestHandler} Middleware
|
|
213
|
+
*/
|
|
214
|
+
/**
|
|
215
|
+
* @typedef {Object} Configuration
|
|
216
|
+
* @property {boolean | string} [ipc]
|
|
217
|
+
* @property {Host} [host]
|
|
218
|
+
* @property {Port} [port]
|
|
219
|
+
* @property {boolean | "only"} [hot]
|
|
220
|
+
* @property {boolean} [liveReload]
|
|
221
|
+
* @property {DevMiddlewareOptions<Request, Response>} [devMiddleware]
|
|
222
|
+
* @property {boolean} [compress]
|
|
223
|
+
* @property {"auto" | "all" | string | string[]} [allowedHosts]
|
|
224
|
+
* @property {boolean | ConnectHistoryApiFallbackOptions} [historyApiFallback]
|
|
225
|
+
* @property {boolean | Record<string, never> | BonjourOptions} [bonjour]
|
|
226
|
+
* @property {string | string[] | WatchFiles | Array<string | WatchFiles>} [watchFiles]
|
|
227
|
+
* @property {boolean | string | Static | Array<string | Static>} [static]
|
|
228
|
+
* @property {boolean | ServerOptions} [https]
|
|
229
|
+
* @property {boolean} [http2]
|
|
230
|
+
* @property {"http" | "https" | "spdy" | string | ServerConfiguration} [server]
|
|
231
|
+
* @property {boolean | "sockjs" | "ws" | string | WebSocketServerConfiguration} [webSocketServer]
|
|
232
|
+
* @property {ProxyConfigMap | ProxyConfigArrayItem | ProxyConfigArray} [proxy]
|
|
233
|
+
* @property {boolean | string | Open | Array<string | Open>} [open]
|
|
234
|
+
* @property {boolean} [setupExitSignals]
|
|
235
|
+
* @property {boolean | ClientConfiguration} [client]
|
|
236
|
+
* @property {Headers | ((req: Request, res: Response, context: DevMiddlewareContext<Request, Response>) => Headers)} [headers]
|
|
237
|
+
* @property {(devServer: Server) => void} [onListening]
|
|
238
|
+
* @property {(middlewares: Middleware[], devServer: Server) => Middleware[]} [setupMiddlewares]
|
|
239
|
+
*/
|
|
1823
240
|
ClientOverlay: {
|
|
1824
241
|
anyOf: (
|
|
1825
242
|
| {
|
|
@@ -1848,106 +265,6 @@ declare class Server {
|
|
|
1848
265
|
}
|
|
1849
266
|
| {
|
|
1850
267
|
instanceof: string;
|
|
1851
|
-
/**
|
|
1852
|
-
* @typedef {Object} WebSocketServerConfiguration
|
|
1853
|
-
* @property {"sockjs" | "ws" | string | Function} [type]
|
|
1854
|
-
* @property {Record<string, any>} [options]
|
|
1855
|
-
*/
|
|
1856
|
-
/**
|
|
1857
|
-
* @typedef {(import("ws").WebSocket | import("sockjs").Connection & { send: import("ws").WebSocket["send"], terminate: import("ws").WebSocket["terminate"], ping: import("ws").WebSocket["ping"] }) & { isAlive?: boolean }} ClientConnection
|
|
1858
|
-
*/
|
|
1859
|
-
/**
|
|
1860
|
-
* @typedef {import("ws").WebSocketServer | import("sockjs").Server & { close: import("ws").WebSocketServer["close"] }} WebSocketServer
|
|
1861
|
-
*/
|
|
1862
|
-
/**
|
|
1863
|
-
* @typedef {{ implementation: WebSocketServer, clients: ClientConnection[] }} WebSocketServerImplementation
|
|
1864
|
-
*/
|
|
1865
|
-
/**
|
|
1866
|
-
* @callback ByPass
|
|
1867
|
-
* @param {Request} req
|
|
1868
|
-
* @param {Response} res
|
|
1869
|
-
* @param {ProxyConfigArrayItem} proxyConfig
|
|
1870
|
-
*/
|
|
1871
|
-
/**
|
|
1872
|
-
* @typedef {{ path?: HttpProxyMiddlewareOptionsFilter | undefined, context?: HttpProxyMiddlewareOptionsFilter | undefined } & { bypass?: ByPass } & HttpProxyMiddlewareOptions } ProxyConfigArrayItem
|
|
1873
|
-
*/
|
|
1874
|
-
/**
|
|
1875
|
-
* @typedef {(ProxyConfigArrayItem | ((req?: Request | undefined, res?: Response | undefined, next?: NextFunction | undefined) => ProxyConfigArrayItem))[]} ProxyConfigArray
|
|
1876
|
-
*/
|
|
1877
|
-
/**
|
|
1878
|
-
* @typedef {{ [url: string]: string | ProxyConfigArrayItem }} ProxyConfigMap
|
|
1879
|
-
*/
|
|
1880
|
-
/**
|
|
1881
|
-
* @typedef {Object} OpenApp
|
|
1882
|
-
* @property {string} [name]
|
|
1883
|
-
* @property {string[]} [arguments]
|
|
1884
|
-
*/
|
|
1885
|
-
/**
|
|
1886
|
-
* @typedef {Object} Open
|
|
1887
|
-
* @property {string | string[] | OpenApp} [app]
|
|
1888
|
-
* @property {string | string[]} [target]
|
|
1889
|
-
*/
|
|
1890
|
-
/**
|
|
1891
|
-
* @typedef {Object} NormalizedOpen
|
|
1892
|
-
* @property {string} target
|
|
1893
|
-
* @property {import("open").Options} options
|
|
1894
|
-
*/
|
|
1895
|
-
/**
|
|
1896
|
-
* @typedef {Object} WebSocketURL
|
|
1897
|
-
* @property {string} [hostname]
|
|
1898
|
-
* @property {string} [password]
|
|
1899
|
-
* @property {string} [pathname]
|
|
1900
|
-
* @property {number | string} [port]
|
|
1901
|
-
* @property {string} [protocol]
|
|
1902
|
-
* @property {string} [username]
|
|
1903
|
-
*/
|
|
1904
|
-
/**
|
|
1905
|
-
* @typedef {boolean | ((error: Error) => void)} OverlayMessageOptions
|
|
1906
|
-
*/
|
|
1907
|
-
/**
|
|
1908
|
-
* @typedef {Object} ClientConfiguration
|
|
1909
|
-
* @property {"log" | "info" | "warn" | "error" | "none" | "verbose"} [logging]
|
|
1910
|
-
* @property {boolean | { warnings?: OverlayMessageOptions, errors?: OverlayMessageOptions, runtimeErrors?: OverlayMessageOptions }} [overlay]
|
|
1911
|
-
* @property {boolean} [progress]
|
|
1912
|
-
* @property {boolean | number} [reconnect]
|
|
1913
|
-
* @property {"ws" | "sockjs" | string} [webSocketTransport]
|
|
1914
|
-
* @property {string | WebSocketURL} [webSocketURL]
|
|
1915
|
-
*/
|
|
1916
|
-
/**
|
|
1917
|
-
* @typedef {Array<{ key: string; value: string }> | Record<string, string | string[]>} Headers
|
|
1918
|
-
*/
|
|
1919
|
-
/**
|
|
1920
|
-
* @typedef {{ name?: string, path?: string, middleware: ExpressRequestHandler | ExpressErrorRequestHandler } | ExpressRequestHandler | ExpressErrorRequestHandler} Middleware
|
|
1921
|
-
*/
|
|
1922
|
-
/**
|
|
1923
|
-
* @typedef {Object} Configuration
|
|
1924
|
-
* @property {boolean | string} [ipc]
|
|
1925
|
-
* @property {Host} [host]
|
|
1926
|
-
* @property {Port} [port]
|
|
1927
|
-
* @property {boolean | "only"} [hot]
|
|
1928
|
-
* @property {boolean} [liveReload]
|
|
1929
|
-
* @property {DevMiddlewareOptions<Request, Response>} [devMiddleware]
|
|
1930
|
-
* @property {boolean} [compress]
|
|
1931
|
-
* @property {boolean} [magicHtml]
|
|
1932
|
-
* @property {"auto" | "all" | string | string[]} [allowedHosts]
|
|
1933
|
-
* @property {boolean | ConnectHistoryApiFallbackOptions} [historyApiFallback]
|
|
1934
|
-
* @property {boolean | Record<string, never> | BonjourOptions} [bonjour]
|
|
1935
|
-
* @property {string | string[] | WatchFiles | Array<string | WatchFiles>} [watchFiles]
|
|
1936
|
-
* @property {boolean | string | Static | Array<string | Static>} [static]
|
|
1937
|
-
* @property {boolean | ServerOptions} [https]
|
|
1938
|
-
* @property {boolean} [http2]
|
|
1939
|
-
* @property {"http" | "https" | "spdy" | string | ServerConfiguration} [server]
|
|
1940
|
-
* @property {boolean | "sockjs" | "ws" | string | WebSocketServerConfiguration} [webSocketServer]
|
|
1941
|
-
* @property {ProxyConfigMap | ProxyConfigArrayItem | ProxyConfigArray} [proxy]
|
|
1942
|
-
* @property {boolean | string | Open | Array<string | Open>} [open]
|
|
1943
|
-
* @property {boolean} [setupExitSignals]
|
|
1944
|
-
* @property {boolean | ClientConfiguration} [client]
|
|
1945
|
-
* @property {Headers | ((req: Request, res: Response, context: DevMiddlewareContext<Request, Response>) => Headers)} [headers]
|
|
1946
|
-
* @property {(devServer: Server) => void} [onAfterSetupMiddleware]
|
|
1947
|
-
* @property {(devServer: Server) => void} [onBeforeSetupMiddleware]
|
|
1948
|
-
* @property {(devServer: Server) => void} [onListening]
|
|
1949
|
-
* @property {(middlewares: Middleware[], devServer: Server) => Middleware[]} [setupMiddlewares]
|
|
1950
|
-
*/
|
|
1951
268
|
description: string;
|
|
1952
269
|
type?: undefined;
|
|
1953
270
|
cli?: undefined;
|
|
@@ -2073,295 +390,51 @@ declare class Server {
|
|
|
2073
390
|
anyOf: (
|
|
2074
391
|
| {
|
|
2075
392
|
type: string;
|
|
2076
|
-
minLength?: undefined;
|
|
2077
|
-
}
|
|
2078
|
-
| {
|
|
2079
|
-
type: string;
|
|
2080
|
-
minLength: number;
|
|
2081
|
-
}
|
|
2082
|
-
)[];
|
|
2083
|
-
};
|
|
2084
|
-
protocol: {
|
|
2085
|
-
description: string;
|
|
2086
|
-
anyOf: (
|
|
2087
|
-
| {
|
|
2088
|
-
enum: string[];
|
|
2089
|
-
type?: undefined;
|
|
2090
|
-
minLength?: undefined;
|
|
2091
|
-
}
|
|
2092
|
-
| {
|
|
2093
|
-
type: string;
|
|
2094
|
-
minLength: number;
|
|
2095
|
-
enum?: undefined;
|
|
2096
|
-
}
|
|
2097
|
-
)[];
|
|
2098
|
-
};
|
|
2099
|
-
username: {
|
|
2100
|
-
description: string;
|
|
2101
|
-
type: string;
|
|
2102
|
-
};
|
|
2103
|
-
};
|
|
2104
|
-
minLength?: undefined;
|
|
2105
|
-
}
|
|
2106
|
-
)[];
|
|
2107
|
-
};
|
|
2108
|
-
Compress: {
|
|
2109
|
-
type: string;
|
|
2110
|
-
description: string;
|
|
2111
|
-
link: string;
|
|
2112
|
-
cli: {
|
|
2113
|
-
negatedDescription: string;
|
|
2114
|
-
};
|
|
2115
|
-
};
|
|
2116
|
-
DevMiddleware: {
|
|
2117
|
-
description: string;
|
|
2118
|
-
link: string;
|
|
2119
|
-
type: string;
|
|
2120
|
-
additionalProperties: boolean;
|
|
2121
|
-
};
|
|
2122
|
-
HTTP2: {
|
|
2123
|
-
type: string;
|
|
2124
|
-
description: string;
|
|
2125
|
-
link: string;
|
|
2126
|
-
cli: {
|
|
2127
|
-
negatedDescription: string;
|
|
2128
|
-
};
|
|
2129
|
-
};
|
|
2130
|
-
HTTPS: {
|
|
2131
|
-
anyOf: (
|
|
2132
|
-
| {
|
|
2133
|
-
type: string;
|
|
2134
|
-
cli: {
|
|
2135
|
-
negatedDescription: string;
|
|
2136
|
-
};
|
|
2137
|
-
additionalProperties?: undefined;
|
|
2138
|
-
properties?: undefined;
|
|
2139
|
-
}
|
|
2140
|
-
| {
|
|
2141
|
-
type: string;
|
|
2142
|
-
additionalProperties: boolean;
|
|
2143
|
-
properties: {
|
|
2144
|
-
passphrase: {
|
|
2145
|
-
type: string;
|
|
2146
|
-
description: string;
|
|
2147
|
-
};
|
|
2148
|
-
requestCert: {
|
|
2149
|
-
type: string;
|
|
2150
|
-
description: string;
|
|
2151
|
-
cli: {
|
|
2152
|
-
negatedDescription: string;
|
|
2153
|
-
};
|
|
2154
|
-
};
|
|
2155
|
-
/**
|
|
2156
|
-
* @private
|
|
2157
|
-
* @type {string | undefined}
|
|
2158
|
-
*/
|
|
2159
|
-
ca: {
|
|
2160
|
-
anyOf: (
|
|
2161
|
-
| {
|
|
2162
|
-
type: string;
|
|
2163
|
-
items: {
|
|
2164
|
-
anyOf: (
|
|
2165
|
-
| {
|
|
2166
|
-
type: string;
|
|
2167
|
-
instanceof?: undefined;
|
|
2168
|
-
}
|
|
2169
|
-
| {
|
|
2170
|
-
instanceof: string;
|
|
2171
|
-
type?: undefined;
|
|
2172
|
-
}
|
|
2173
|
-
)[];
|
|
2174
|
-
};
|
|
2175
|
-
instanceof?: undefined;
|
|
2176
|
-
}
|
|
2177
|
-
| {
|
|
2178
|
-
type: string;
|
|
2179
|
-
items?: undefined;
|
|
2180
|
-
instanceof?: undefined;
|
|
2181
|
-
}
|
|
2182
|
-
| {
|
|
2183
|
-
instanceof: string;
|
|
2184
|
-
type?: undefined;
|
|
2185
|
-
items?: undefined;
|
|
2186
|
-
}
|
|
2187
|
-
)[];
|
|
2188
|
-
description: string;
|
|
2189
|
-
};
|
|
2190
|
-
cacert: {
|
|
2191
|
-
anyOf: (
|
|
2192
|
-
| {
|
|
2193
|
-
type: string;
|
|
2194
|
-
items: {
|
|
2195
|
-
anyOf: (
|
|
2196
|
-
| {
|
|
2197
|
-
type: string;
|
|
2198
|
-
instanceof?: undefined;
|
|
2199
|
-
}
|
|
2200
|
-
| {
|
|
2201
|
-
instanceof: string;
|
|
2202
|
-
type?: undefined;
|
|
2203
|
-
}
|
|
2204
|
-
)[];
|
|
2205
|
-
};
|
|
2206
|
-
instanceof?: undefined;
|
|
2207
|
-
}
|
|
2208
|
-
| {
|
|
2209
|
-
type: string;
|
|
2210
|
-
items?: undefined;
|
|
2211
|
-
instanceof?: undefined;
|
|
2212
|
-
}
|
|
2213
|
-
| {
|
|
2214
|
-
instanceof: string;
|
|
2215
|
-
type?: undefined;
|
|
2216
|
-
items?: undefined;
|
|
2217
|
-
}
|
|
2218
|
-
)[];
|
|
2219
|
-
description: string;
|
|
2220
|
-
};
|
|
2221
|
-
cert: {
|
|
2222
|
-
anyOf: (
|
|
2223
|
-
| {
|
|
2224
|
-
type: string;
|
|
2225
|
-
items: {
|
|
2226
|
-
anyOf: (
|
|
2227
|
-
| {
|
|
2228
|
-
type: string;
|
|
2229
|
-
instanceof?: undefined;
|
|
2230
|
-
}
|
|
2231
|
-
| {
|
|
2232
|
-
instanceof: string;
|
|
2233
|
-
type?: undefined;
|
|
2234
|
-
}
|
|
2235
|
-
)[];
|
|
2236
|
-
};
|
|
2237
|
-
instanceof?: undefined;
|
|
2238
|
-
}
|
|
2239
|
-
| {
|
|
2240
|
-
type: string;
|
|
2241
|
-
items?: undefined;
|
|
2242
|
-
instanceof?: undefined;
|
|
2243
|
-
}
|
|
2244
|
-
| {
|
|
2245
|
-
instanceof: string;
|
|
2246
|
-
type?: undefined;
|
|
2247
|
-
items?: undefined;
|
|
2248
|
-
}
|
|
2249
|
-
)[];
|
|
2250
|
-
description: string;
|
|
2251
|
-
};
|
|
2252
|
-
crl: {
|
|
2253
|
-
anyOf: (
|
|
2254
|
-
| {
|
|
2255
|
-
type: string;
|
|
2256
|
-
items: {
|
|
2257
|
-
anyOf: (
|
|
2258
|
-
| {
|
|
2259
|
-
type: string;
|
|
2260
|
-
instanceof?: undefined;
|
|
2261
|
-
}
|
|
2262
|
-
| {
|
|
2263
|
-
instanceof: string;
|
|
2264
|
-
type?: undefined;
|
|
2265
|
-
}
|
|
2266
|
-
)[];
|
|
2267
|
-
};
|
|
2268
|
-
instanceof?: undefined;
|
|
2269
|
-
}
|
|
2270
|
-
| {
|
|
2271
|
-
type: string;
|
|
2272
|
-
items?: undefined;
|
|
2273
|
-
instanceof?: undefined;
|
|
2274
|
-
}
|
|
2275
|
-
| {
|
|
2276
|
-
instanceof: string;
|
|
2277
|
-
type?: undefined;
|
|
2278
|
-
items?: undefined;
|
|
2279
|
-
}
|
|
2280
|
-
)[];
|
|
2281
|
-
description: string;
|
|
2282
|
-
};
|
|
2283
|
-
key: {
|
|
2284
|
-
anyOf: (
|
|
2285
|
-
| {
|
|
2286
|
-
type: string;
|
|
2287
|
-
items: {
|
|
2288
|
-
anyOf: (
|
|
2289
|
-
| {
|
|
2290
|
-
type: string;
|
|
2291
|
-
instanceof?: undefined;
|
|
2292
|
-
additionalProperties?: undefined;
|
|
2293
|
-
}
|
|
2294
|
-
| {
|
|
2295
|
-
instanceof: string;
|
|
2296
|
-
type?: undefined;
|
|
2297
|
-
additionalProperties?: undefined;
|
|
2298
|
-
}
|
|
2299
|
-
| {
|
|
2300
|
-
type: string;
|
|
2301
|
-
additionalProperties: boolean;
|
|
2302
|
-
instanceof?: undefined;
|
|
2303
|
-
}
|
|
2304
|
-
)[];
|
|
2305
|
-
};
|
|
2306
|
-
instanceof?: undefined;
|
|
2307
|
-
}
|
|
2308
|
-
| {
|
|
2309
|
-
type: string;
|
|
2310
|
-
items?: undefined;
|
|
2311
|
-
instanceof?: undefined;
|
|
2312
|
-
}
|
|
2313
|
-
| {
|
|
2314
|
-
instanceof: string;
|
|
2315
|
-
type?: undefined;
|
|
2316
|
-
items?: undefined;
|
|
2317
|
-
}
|
|
2318
|
-
)[];
|
|
2319
|
-
description: string;
|
|
2320
|
-
};
|
|
2321
|
-
pfx: {
|
|
2322
|
-
anyOf: (
|
|
2323
|
-
| {
|
|
2324
|
-
type: string;
|
|
2325
|
-
items: {
|
|
2326
|
-
anyOf: (
|
|
2327
|
-
| {
|
|
2328
|
-
type: string;
|
|
2329
|
-
instanceof?: undefined;
|
|
2330
|
-
additionalProperties?: undefined;
|
|
2331
|
-
}
|
|
2332
|
-
| {
|
|
2333
|
-
instanceof: string;
|
|
2334
|
-
type?: undefined;
|
|
2335
|
-
additionalProperties?: undefined;
|
|
2336
|
-
}
|
|
2337
|
-
| {
|
|
2338
|
-
type: string;
|
|
2339
|
-
additionalProperties: boolean;
|
|
2340
|
-
instanceof?: undefined;
|
|
2341
|
-
}
|
|
2342
|
-
)[];
|
|
2343
|
-
};
|
|
2344
|
-
instanceof?: undefined;
|
|
393
|
+
minLength?: undefined;
|
|
2345
394
|
}
|
|
2346
395
|
| {
|
|
2347
396
|
type: string;
|
|
2348
|
-
|
|
2349
|
-
instanceof?: undefined;
|
|
397
|
+
minLength: number;
|
|
2350
398
|
}
|
|
399
|
+
)[];
|
|
400
|
+
};
|
|
401
|
+
protocol: {
|
|
402
|
+
description: string;
|
|
403
|
+
anyOf: (
|
|
2351
404
|
| {
|
|
2352
|
-
|
|
405
|
+
enum: string[];
|
|
2353
406
|
type?: undefined;
|
|
2354
|
-
|
|
407
|
+
minLength?: undefined;
|
|
408
|
+
}
|
|
409
|
+
| {
|
|
410
|
+
type: string;
|
|
411
|
+
minLength: number;
|
|
412
|
+
enum?: undefined;
|
|
2355
413
|
}
|
|
2356
414
|
)[];
|
|
415
|
+
};
|
|
416
|
+
username: {
|
|
2357
417
|
description: string;
|
|
418
|
+
type: string;
|
|
2358
419
|
};
|
|
2359
420
|
};
|
|
2360
|
-
|
|
421
|
+
minLength?: undefined;
|
|
2361
422
|
}
|
|
2362
423
|
)[];
|
|
424
|
+
};
|
|
425
|
+
Compress: {
|
|
426
|
+
type: string;
|
|
427
|
+
description: string;
|
|
428
|
+
link: string;
|
|
429
|
+
cli: {
|
|
430
|
+
negatedDescription: string;
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
DevMiddleware: {
|
|
2363
434
|
description: string;
|
|
2364
435
|
link: string;
|
|
436
|
+
type: string;
|
|
437
|
+
additionalProperties: boolean;
|
|
2365
438
|
};
|
|
2366
439
|
HeaderObject: {
|
|
2367
440
|
type: string;
|
|
@@ -2419,7 +492,6 @@ declare class Server {
|
|
|
2419
492
|
| {
|
|
2420
493
|
type: string;
|
|
2421
494
|
description: string;
|
|
2422
|
-
/** @type {{ type: WebSocketServerConfiguration["type"], options: NonNullable<WebSocketServerConfiguration["options"]> }} */
|
|
2423
495
|
link: string;
|
|
2424
496
|
cli?: undefined;
|
|
2425
497
|
}
|
|
@@ -2454,7 +526,7 @@ declare class Server {
|
|
|
2454
526
|
}
|
|
2455
527
|
| {
|
|
2456
528
|
enum: string[];
|
|
2457
|
-
|
|
529
|
+
type?: undefined;
|
|
2458
530
|
cli?: undefined;
|
|
2459
531
|
}
|
|
2460
532
|
)[];
|
|
@@ -2485,24 +557,6 @@ declare class Server {
|
|
|
2485
557
|
};
|
|
2486
558
|
link: string;
|
|
2487
559
|
};
|
|
2488
|
-
MagicHTML: {
|
|
2489
|
-
type: string;
|
|
2490
|
-
description: string;
|
|
2491
|
-
cli: {
|
|
2492
|
-
negatedDescription: string;
|
|
2493
|
-
};
|
|
2494
|
-
link: string;
|
|
2495
|
-
};
|
|
2496
|
-
OnAfterSetupMiddleware: {
|
|
2497
|
-
instanceof: string;
|
|
2498
|
-
description: string;
|
|
2499
|
-
link: string;
|
|
2500
|
-
};
|
|
2501
|
-
OnBeforeSetupMiddleware: {
|
|
2502
|
-
instanceof: string;
|
|
2503
|
-
description: string;
|
|
2504
|
-
link: string;
|
|
2505
|
-
};
|
|
2506
560
|
OnListening: {
|
|
2507
561
|
instanceof: string;
|
|
2508
562
|
description: string;
|
|
@@ -2532,7 +586,9 @@ declare class Server {
|
|
|
2532
586
|
type: string;
|
|
2533
587
|
cli: {
|
|
2534
588
|
negatedDescription: string;
|
|
2535
|
-
}
|
|
589
|
+
} /**
|
|
590
|
+
* @type {string | undefined}
|
|
591
|
+
*/;
|
|
2536
592
|
};
|
|
2537
593
|
OpenObject: {
|
|
2538
594
|
type: string;
|
|
@@ -2565,7 +621,11 @@ declare class Server {
|
|
|
2565
621
|
type: string;
|
|
2566
622
|
items: {
|
|
2567
623
|
type: string;
|
|
2568
|
-
minLength: number
|
|
624
|
+
minLength: number /**
|
|
625
|
+
* @private
|
|
626
|
+
* @param {Compiler} compiler
|
|
627
|
+
* @returns bool
|
|
628
|
+
*/;
|
|
2569
629
|
};
|
|
2570
630
|
minItems: number;
|
|
2571
631
|
minLength?: undefined;
|
|
@@ -2594,7 +654,7 @@ declare class Server {
|
|
|
2594
654
|
minLength: number;
|
|
2595
655
|
description: string;
|
|
2596
656
|
cli: {
|
|
2597
|
-
|
|
657
|
+
exclude: boolean;
|
|
2598
658
|
};
|
|
2599
659
|
additionalProperties?: undefined;
|
|
2600
660
|
properties?: undefined;
|
|
@@ -2636,27 +696,19 @@ declare class Server {
|
|
|
2636
696
|
link: string;
|
|
2637
697
|
};
|
|
2638
698
|
Proxy: {
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
| {
|
|
2653
|
-
instanceof: string;
|
|
2654
|
-
type?: undefined;
|
|
2655
|
-
}
|
|
2656
|
-
)[];
|
|
2657
|
-
};
|
|
2658
|
-
}
|
|
2659
|
-
)[];
|
|
699
|
+
type: string;
|
|
700
|
+
items: {
|
|
701
|
+
anyOf: (
|
|
702
|
+
| {
|
|
703
|
+
type: string;
|
|
704
|
+
instanceof?: undefined;
|
|
705
|
+
}
|
|
706
|
+
| {
|
|
707
|
+
instanceof: string;
|
|
708
|
+
type?: undefined;
|
|
709
|
+
}
|
|
710
|
+
)[];
|
|
711
|
+
};
|
|
2660
712
|
description: string;
|
|
2661
713
|
link: string;
|
|
2662
714
|
};
|
|
@@ -2678,7 +730,7 @@ declare class Server {
|
|
|
2678
730
|
};
|
|
2679
731
|
ServerString: {
|
|
2680
732
|
type: string;
|
|
2681
|
-
|
|
733
|
+
minLength: number;
|
|
2682
734
|
cli: {
|
|
2683
735
|
exclude: boolean;
|
|
2684
736
|
};
|
|
@@ -2743,37 +795,6 @@ declare class Server {
|
|
|
2743
795
|
)[];
|
|
2744
796
|
description: string;
|
|
2745
797
|
};
|
|
2746
|
-
cacert: {
|
|
2747
|
-
anyOf: (
|
|
2748
|
-
| {
|
|
2749
|
-
type: string;
|
|
2750
|
-
items: {
|
|
2751
|
-
anyOf: (
|
|
2752
|
-
| {
|
|
2753
|
-
type: string;
|
|
2754
|
-
instanceof?: undefined;
|
|
2755
|
-
}
|
|
2756
|
-
| {
|
|
2757
|
-
instanceof: string;
|
|
2758
|
-
type?: undefined;
|
|
2759
|
-
}
|
|
2760
|
-
)[];
|
|
2761
|
-
};
|
|
2762
|
-
instanceof?: undefined;
|
|
2763
|
-
}
|
|
2764
|
-
| {
|
|
2765
|
-
type: string;
|
|
2766
|
-
items?: undefined;
|
|
2767
|
-
instanceof?: undefined;
|
|
2768
|
-
}
|
|
2769
|
-
| {
|
|
2770
|
-
instanceof: string;
|
|
2771
|
-
type?: undefined;
|
|
2772
|
-
items?: undefined;
|
|
2773
|
-
}
|
|
2774
|
-
)[];
|
|
2775
|
-
description: string;
|
|
2776
|
-
};
|
|
2777
798
|
cert: {
|
|
2778
799
|
anyOf: (
|
|
2779
800
|
| {
|
|
@@ -2874,7 +895,6 @@ declare class Server {
|
|
|
2874
895
|
)[];
|
|
2875
896
|
description: string;
|
|
2876
897
|
};
|
|
2877
|
-
/** @type {NormalizedStatic} */
|
|
2878
898
|
pfx: {
|
|
2879
899
|
anyOf: (
|
|
2880
900
|
| {
|
|
@@ -2965,7 +985,7 @@ declare class Server {
|
|
|
2965
985
|
directory: {
|
|
2966
986
|
type: string;
|
|
2967
987
|
minLength: number;
|
|
2968
|
-
description: string;
|
|
988
|
+
/** @type {MultiCompiler} */ description: string;
|
|
2969
989
|
link: string;
|
|
2970
990
|
};
|
|
2971
991
|
staticOptions: {
|
|
@@ -3108,18 +1128,17 @@ declare class Server {
|
|
|
3108
1128
|
enum: boolean[];
|
|
3109
1129
|
cli: {
|
|
3110
1130
|
negatedDescription: string;
|
|
1131
|
+
exclude?: undefined;
|
|
3111
1132
|
};
|
|
3112
|
-
$ref?: undefined;
|
|
3113
1133
|
}
|
|
3114
1134
|
| {
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
1135
|
+
enum: string[];
|
|
1136
|
+
cli: {
|
|
1137
|
+
exclude: boolean;
|
|
1138
|
+
negatedDescription?: undefined;
|
|
1139
|
+
};
|
|
3118
1140
|
}
|
|
3119
1141
|
)[];
|
|
3120
|
-
cli: {
|
|
3121
|
-
description: string;
|
|
3122
|
-
};
|
|
3123
1142
|
};
|
|
3124
1143
|
WebSocketServerFunction: {
|
|
3125
1144
|
instanceof: string;
|
|
@@ -3145,6 +1164,9 @@ declare class Server {
|
|
|
3145
1164
|
WebSocketServerString: {
|
|
3146
1165
|
type: string;
|
|
3147
1166
|
minLength: number;
|
|
1167
|
+
cli: {
|
|
1168
|
+
exclude: boolean;
|
|
1169
|
+
};
|
|
3148
1170
|
};
|
|
3149
1171
|
};
|
|
3150
1172
|
additionalProperties: boolean;
|
|
@@ -3176,27 +1198,12 @@ declare class Server {
|
|
|
3176
1198
|
hot: {
|
|
3177
1199
|
$ref: string;
|
|
3178
1200
|
};
|
|
3179
|
-
http2: {
|
|
3180
|
-
$ref: string;
|
|
3181
|
-
};
|
|
3182
|
-
https: {
|
|
3183
|
-
$ref: string;
|
|
3184
|
-
};
|
|
3185
1201
|
ipc: {
|
|
3186
1202
|
$ref: string;
|
|
3187
1203
|
};
|
|
3188
1204
|
liveReload: {
|
|
3189
1205
|
$ref: string;
|
|
3190
1206
|
};
|
|
3191
|
-
magicHtml: {
|
|
3192
|
-
$ref: string;
|
|
3193
|
-
};
|
|
3194
|
-
onAfterSetupMiddleware: {
|
|
3195
|
-
$ref: string;
|
|
3196
|
-
};
|
|
3197
|
-
onBeforeSetupMiddleware: {
|
|
3198
|
-
$ref: string;
|
|
3199
|
-
};
|
|
3200
1207
|
onListening: {
|
|
3201
1208
|
$ref: string;
|
|
3202
1209
|
};
|
|
@@ -3280,7 +1287,7 @@ declare class Server {
|
|
|
3280
1287
|
| import("webpack").MultiCompiler
|
|
3281
1288
|
| Configuration
|
|
3282
1289
|
| undefined,
|
|
3283
|
-
compiler: Compiler | MultiCompiler | Configuration
|
|
1290
|
+
compiler: Compiler | MultiCompiler | Configuration,
|
|
3284
1291
|
);
|
|
3285
1292
|
compiler: import("webpack").Compiler | import("webpack").MultiCompiler;
|
|
3286
1293
|
/**
|
|
@@ -3381,14 +1388,8 @@ declare class Server {
|
|
|
3381
1388
|
private setupDevMiddleware;
|
|
3382
1389
|
middleware:
|
|
3383
1390
|
| import("webpack-dev-middleware").API<
|
|
3384
|
-
import("
|
|
3385
|
-
|
|
3386
|
-
any,
|
|
3387
|
-
any,
|
|
3388
|
-
qs.ParsedQs,
|
|
3389
|
-
Record<string, any>
|
|
3390
|
-
>,
|
|
3391
|
-
import("express").Response<any, Record<string, any>>
|
|
1391
|
+
import("http").IncomingMessage,
|
|
1392
|
+
import("http").ServerResponse<import("http").IncomingMessage>
|
|
3392
1393
|
>
|
|
3393
1394
|
| null
|
|
3394
1395
|
| undefined;
|
|
@@ -3429,7 +1430,7 @@ declare class Server {
|
|
|
3429
1430
|
/**
|
|
3430
1431
|
* @private
|
|
3431
1432
|
* @param {string} defaultOpenTarget
|
|
3432
|
-
* @returns {void}
|
|
1433
|
+
* @returns {Promise<void>}
|
|
3433
1434
|
*/
|
|
3434
1435
|
private openBrowser;
|
|
3435
1436
|
/**
|
|
@@ -3449,7 +1450,7 @@ declare class Server {
|
|
|
3449
1450
|
private stopBonjour;
|
|
3450
1451
|
/**
|
|
3451
1452
|
* @private
|
|
3452
|
-
* @returns {void}
|
|
1453
|
+
* @returns {Promise<void>}
|
|
3453
1454
|
*/
|
|
3454
1455
|
private logStatus;
|
|
3455
1456
|
/**
|
|
@@ -3476,16 +1477,8 @@ declare class Server {
|
|
|
3476
1477
|
clients: ClientConnection[],
|
|
3477
1478
|
type: string,
|
|
3478
1479
|
data?: any,
|
|
3479
|
-
params?: any
|
|
1480
|
+
params?: any,
|
|
3480
1481
|
): void;
|
|
3481
|
-
/**
|
|
3482
|
-
* @private
|
|
3483
|
-
* @param {Request} req
|
|
3484
|
-
* @param {Response} res
|
|
3485
|
-
* @param {NextFunction} next
|
|
3486
|
-
* @returns {void}
|
|
3487
|
-
*/
|
|
3488
|
-
private serveMagicHtml;
|
|
3489
1482
|
/**
|
|
3490
1483
|
* @private
|
|
3491
1484
|
* @param {ClientConnection[]} clients
|
|
@@ -3499,13 +1492,13 @@ declare class Server {
|
|
|
3499
1492
|
*/
|
|
3500
1493
|
watchFiles(
|
|
3501
1494
|
watchPath: string | string[],
|
|
3502
|
-
watchOptions?: import("chokidar").WatchOptions | undefined
|
|
1495
|
+
watchOptions?: import("chokidar").WatchOptions | undefined,
|
|
3503
1496
|
): void;
|
|
3504
1497
|
/**
|
|
3505
1498
|
* @param {import("webpack-dev-middleware").Callback} [callback]
|
|
3506
1499
|
*/
|
|
3507
1500
|
invalidate(
|
|
3508
|
-
callback?: import("webpack-dev-middleware").Callback | undefined
|
|
1501
|
+
callback?: import("webpack-dev-middleware").Callback | undefined,
|
|
3509
1502
|
): void;
|
|
3510
1503
|
/**
|
|
3511
1504
|
* @returns {Promise<void>}
|
|
@@ -3523,18 +1516,6 @@ declare class Server {
|
|
|
3523
1516
|
* @param {(err?: Error) => void} [callback]
|
|
3524
1517
|
*/
|
|
3525
1518
|
stopCallback(callback?: ((err?: Error) => void) | undefined): void;
|
|
3526
|
-
/**
|
|
3527
|
-
* @param {Port} port
|
|
3528
|
-
* @param {Host} hostname
|
|
3529
|
-
* @param {(err?: Error) => void} fn
|
|
3530
|
-
* @returns {void}
|
|
3531
|
-
*/
|
|
3532
|
-
listen(port: Port, hostname: Host, fn: (err?: Error) => void): void;
|
|
3533
|
-
/**
|
|
3534
|
-
* @param {(err?: Error) => void} [callback]
|
|
3535
|
-
* @returns {void}
|
|
3536
|
-
*/
|
|
3537
|
-
close(callback?: ((err?: Error) => void) | undefined): void;
|
|
3538
1519
|
}
|
|
3539
1520
|
declare namespace Server {
|
|
3540
1521
|
export {
|
|
@@ -3567,6 +1548,7 @@ declare namespace Server {
|
|
|
3567
1548
|
IPv6,
|
|
3568
1549
|
Socket,
|
|
3569
1550
|
IncomingMessage,
|
|
1551
|
+
ServerResponse,
|
|
3570
1552
|
OpenOptions,
|
|
3571
1553
|
ServerOptions,
|
|
3572
1554
|
DevMiddlewareOptions,
|
|
@@ -3597,89 +1579,17 @@ declare namespace Server {
|
|
|
3597
1579
|
};
|
|
3598
1580
|
}
|
|
3599
1581
|
type Compiler = import("webpack").Compiler;
|
|
3600
|
-
type Configuration = {
|
|
3601
|
-
ipc?: string | boolean | undefined;
|
|
3602
|
-
host?: string | undefined;
|
|
3603
|
-
port?: Port | undefined;
|
|
3604
|
-
hot?: boolean | "only" | undefined;
|
|
3605
|
-
liveReload?: boolean | undefined;
|
|
3606
|
-
devMiddleware?:
|
|
3607
|
-
| DevMiddlewareOptions<
|
|
3608
|
-
import("express").Request<
|
|
3609
|
-
import("express-serve-static-core").ParamsDictionary,
|
|
3610
|
-
any,
|
|
3611
|
-
any,
|
|
3612
|
-
qs.ParsedQs,
|
|
3613
|
-
Record<string, any>
|
|
3614
|
-
>,
|
|
3615
|
-
import("express").Response<any, Record<string, any>>
|
|
3616
|
-
>
|
|
3617
|
-
| undefined;
|
|
3618
|
-
compress?: boolean | undefined;
|
|
3619
|
-
magicHtml?: boolean | undefined;
|
|
3620
|
-
allowedHosts?: string | string[] | undefined;
|
|
3621
|
-
historyApiFallback?:
|
|
3622
|
-
| boolean
|
|
3623
|
-
| import("connect-history-api-fallback").Options
|
|
3624
|
-
| undefined;
|
|
3625
|
-
bonjour?:
|
|
3626
|
-
| boolean
|
|
3627
|
-
| Record<string, never>
|
|
3628
|
-
| import("bonjour-service").Service
|
|
3629
|
-
| undefined;
|
|
3630
|
-
watchFiles?:
|
|
3631
|
-
| string
|
|
3632
|
-
| string[]
|
|
3633
|
-
| WatchFiles
|
|
3634
|
-
| (string | WatchFiles)[]
|
|
3635
|
-
| undefined;
|
|
3636
|
-
static?: string | boolean | Static | (string | Static)[] | undefined;
|
|
3637
|
-
https?: boolean | ServerOptions | undefined;
|
|
3638
|
-
http2?: boolean | undefined;
|
|
3639
|
-
server?: string | ServerConfiguration | undefined;
|
|
3640
|
-
webSocketServer?: string | boolean | WebSocketServerConfiguration | undefined;
|
|
3641
|
-
proxy?: ProxyConfigArrayItem | ProxyConfigMap | ProxyConfigArray | undefined;
|
|
3642
|
-
open?: string | boolean | Open | (string | Open)[] | undefined;
|
|
3643
|
-
setupExitSignals?: boolean | undefined;
|
|
3644
|
-
client?: boolean | ClientConfiguration | undefined;
|
|
3645
|
-
headers?:
|
|
3646
|
-
| Headers
|
|
3647
|
-
| ((
|
|
3648
|
-
req: Request,
|
|
3649
|
-
res: Response,
|
|
3650
|
-
context: DevMiddlewareContext<Request, Response>
|
|
3651
|
-
) => Headers)
|
|
3652
|
-
| undefined;
|
|
3653
|
-
onAfterSetupMiddleware?: ((devServer: Server) => void) | undefined;
|
|
3654
|
-
onBeforeSetupMiddleware?: ((devServer: Server) => void) | undefined;
|
|
3655
|
-
onListening?: ((devServer: Server) => void) | undefined;
|
|
3656
|
-
setupMiddlewares?:
|
|
3657
|
-
| ((middlewares: Middleware[], devServer: Server) => Middleware[])
|
|
3658
|
-
| undefined;
|
|
3659
|
-
};
|
|
3660
1582
|
type FSWatcher = import("chokidar").FSWatcher;
|
|
3661
1583
|
type Socket = import("net").Socket;
|
|
3662
1584
|
type WebSocketServerImplementation = {
|
|
3663
1585
|
implementation: WebSocketServer;
|
|
3664
1586
|
clients: ClientConnection[];
|
|
3665
1587
|
};
|
|
3666
|
-
type ClientConnection = (
|
|
3667
|
-
| import("ws").WebSocket
|
|
3668
|
-
| (import("sockjs").Connection & {
|
|
3669
|
-
send: import("ws").WebSocket["send"];
|
|
3670
|
-
terminate: import("ws").WebSocket["terminate"];
|
|
3671
|
-
ping: import("ws").WebSocket["ping"];
|
|
3672
|
-
})
|
|
3673
|
-
) & {
|
|
3674
|
-
isAlive?: boolean;
|
|
3675
|
-
};
|
|
3676
|
-
type Port = number | string | "auto";
|
|
3677
|
-
type Host = "local-ip" | "local-ipv4" | "local-ipv6" | string;
|
|
3678
|
-
type MultiCompiler = import("webpack").MultiCompiler;
|
|
3679
1588
|
declare class DEFAULT_STATS {
|
|
3680
1589
|
private constructor();
|
|
3681
1590
|
}
|
|
3682
1591
|
type Schema = import("schema-utils/declarations/validate").Schema;
|
|
1592
|
+
type MultiCompiler = import("webpack").MultiCompiler;
|
|
3683
1593
|
type WebpackConfiguration = import("webpack").Configuration;
|
|
3684
1594
|
type StatsOptions = import("webpack").StatsOptions;
|
|
3685
1595
|
type StatsCompilation = import("webpack").StatsCompilation;
|
|
@@ -3704,6 +1614,7 @@ type ServeStaticOptions = import("serve-static").ServeStaticOptions;
|
|
|
3704
1614
|
type IPv4 = import("ipaddr.js").IPv4;
|
|
3705
1615
|
type IPv6 = import("ipaddr.js").IPv6;
|
|
3706
1616
|
type IncomingMessage = import("http").IncomingMessage;
|
|
1617
|
+
type ServerResponse = import("http").ServerResponse;
|
|
3707
1618
|
type OpenOptions = import("open").Options;
|
|
3708
1619
|
type ServerOptions = import("https").ServerOptions & {
|
|
3709
1620
|
spdy?: {
|
|
@@ -3715,9 +1626,11 @@ type ServerOptions = import("https").ServerOptions & {
|
|
|
3715
1626
|
};
|
|
3716
1627
|
};
|
|
3717
1628
|
type DevMiddlewareOptions<Request_1, Response_1> =
|
|
3718
|
-
import("webpack-dev-middleware").Options<
|
|
1629
|
+
import("webpack-dev-middleware").Options<IncomingMessage, ServerResponse>;
|
|
3719
1630
|
type DevMiddlewareContext<Request_1, Response_1> =
|
|
3720
|
-
import("webpack-dev-middleware").Context<
|
|
1631
|
+
import("webpack-dev-middleware").Context<IncomingMessage, ServerResponse>;
|
|
1632
|
+
type Host = "local-ip" | "local-ipv4" | "local-ipv6" | string;
|
|
1633
|
+
type Port = number | string | "auto";
|
|
3721
1634
|
type WatchFiles = {
|
|
3722
1635
|
paths: string | string[];
|
|
3723
1636
|
options?:
|
|
@@ -3761,6 +1674,16 @@ type WebSocketServerConfiguration = {
|
|
|
3761
1674
|
type?: string | Function | undefined;
|
|
3762
1675
|
options?: Record<string, any> | undefined;
|
|
3763
1676
|
};
|
|
1677
|
+
type ClientConnection = (
|
|
1678
|
+
| import("ws").WebSocket
|
|
1679
|
+
| (import("sockjs").Connection & {
|
|
1680
|
+
send: import("ws").WebSocket["send"];
|
|
1681
|
+
terminate: import("ws").WebSocket["terminate"];
|
|
1682
|
+
ping: import("ws").WebSocket["ping"];
|
|
1683
|
+
})
|
|
1684
|
+
) & {
|
|
1685
|
+
isAlive?: boolean;
|
|
1686
|
+
};
|
|
3764
1687
|
type WebSocketServer =
|
|
3765
1688
|
| import("ws").WebSocketServer
|
|
3766
1689
|
| (import("sockjs").Server & {
|
|
@@ -3769,7 +1692,7 @@ type WebSocketServer =
|
|
|
3769
1692
|
type ByPass = (
|
|
3770
1693
|
req: Request,
|
|
3771
1694
|
res: Response,
|
|
3772
|
-
proxyConfig: ProxyConfigArrayItem
|
|
1695
|
+
proxyConfig: ProxyConfigArrayItem,
|
|
3773
1696
|
) => any;
|
|
3774
1697
|
type ProxyConfigArrayItem = {
|
|
3775
1698
|
path?: HttpProxyMiddlewareOptionsFilter | undefined;
|
|
@@ -3782,7 +1705,7 @@ type ProxyConfigArray = (
|
|
|
3782
1705
|
| ((
|
|
3783
1706
|
req?: Request | undefined,
|
|
3784
1707
|
res?: Response | undefined,
|
|
3785
|
-
next?: NextFunction | undefined
|
|
1708
|
+
next?: NextFunction | undefined,
|
|
3786
1709
|
) => ProxyConfigArrayItem)
|
|
3787
1710
|
)[];
|
|
3788
1711
|
type ProxyConfigMap = {
|
|
@@ -3838,6 +1761,52 @@ type Middleware =
|
|
|
3838
1761
|
}
|
|
3839
1762
|
| ExpressRequestHandler
|
|
3840
1763
|
| ExpressErrorRequestHandler;
|
|
1764
|
+
type Configuration = {
|
|
1765
|
+
ipc?: string | boolean | undefined;
|
|
1766
|
+
host?: string | undefined;
|
|
1767
|
+
port?: Port | undefined;
|
|
1768
|
+
hot?: boolean | "only" | undefined;
|
|
1769
|
+
liveReload?: boolean | undefined;
|
|
1770
|
+
devMiddleware?: DevMiddlewareOptions<Request_1, Response_1> | undefined;
|
|
1771
|
+
compress?: boolean | undefined;
|
|
1772
|
+
allowedHosts?: string | string[] | undefined;
|
|
1773
|
+
historyApiFallback?:
|
|
1774
|
+
| boolean
|
|
1775
|
+
| import("connect-history-api-fallback").Options
|
|
1776
|
+
| undefined;
|
|
1777
|
+
bonjour?:
|
|
1778
|
+
| boolean
|
|
1779
|
+
| Record<string, never>
|
|
1780
|
+
| import("bonjour-service").Service
|
|
1781
|
+
| undefined;
|
|
1782
|
+
watchFiles?:
|
|
1783
|
+
| string
|
|
1784
|
+
| string[]
|
|
1785
|
+
| WatchFiles
|
|
1786
|
+
| (string | WatchFiles)[]
|
|
1787
|
+
| undefined;
|
|
1788
|
+
static?: string | boolean | Static | (string | Static)[] | undefined;
|
|
1789
|
+
https?: boolean | ServerOptions | undefined;
|
|
1790
|
+
http2?: boolean | undefined;
|
|
1791
|
+
server?: string | ServerConfiguration | undefined;
|
|
1792
|
+
webSocketServer?: string | boolean | WebSocketServerConfiguration | undefined;
|
|
1793
|
+
proxy?: ProxyConfigArrayItem | ProxyConfigMap | ProxyConfigArray | undefined;
|
|
1794
|
+
open?: string | boolean | Open | (string | Open)[] | undefined;
|
|
1795
|
+
setupExitSignals?: boolean | undefined;
|
|
1796
|
+
client?: boolean | ClientConfiguration | undefined;
|
|
1797
|
+
headers?:
|
|
1798
|
+
| Headers
|
|
1799
|
+
| ((
|
|
1800
|
+
req: Request,
|
|
1801
|
+
res: Response,
|
|
1802
|
+
context: DevMiddlewareContext<Request, Response>,
|
|
1803
|
+
) => Headers)
|
|
1804
|
+
| undefined;
|
|
1805
|
+
onListening?: ((devServer: Server) => void) | undefined;
|
|
1806
|
+
setupMiddlewares?:
|
|
1807
|
+
| ((middlewares: Middleware[], devServer: Server) => Middleware[])
|
|
1808
|
+
| undefined;
|
|
1809
|
+
};
|
|
3841
1810
|
import path = require("path");
|
|
3842
1811
|
|
|
3843
1812
|
// DO NOT REMOVE THIS!
|