webpack-dev-server 4.7.3 → 4.7.4

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.
@@ -26,6 +26,7 @@ declare class Server {
26
26
  /** @typedef {import("express").NextFunction} NextFunction */
27
27
  /** @typedef {import("express").RequestHandler} ExpressRequestHandler */
28
28
  /** @typedef {import("express").ErrorRequestHandler} ExpressErrorRequestHandler */
29
+ /** @typedef {import("anymatch").Matcher} AnymatchMatcher */
29
30
  /** @typedef {import("chokidar").WatchOptions} WatchOptions */
30
31
  /** @typedef {import("chokidar").FSWatcher} FSWatcher */
31
32
  /** @typedef {import("connect-history-api-fallback").Options} ConnectHistoryApiFallbackOptions */
@@ -59,7 +60,7 @@ declare class Server {
59
60
  /**
60
61
  * @typedef {Object} WatchFiles
61
62
  * @property {string | string[]} paths
62
- * @property {WatchOptions & { aggregateTimeout?: number, ignored?: string | RegExp | string[], poll?: number | boolean }} [options]
63
+ * @property {WatchOptions & { aggregateTimeout?: number, ignored?: AnymatchMatcher | string[], poll?: number | boolean }} [options]
63
64
  */
64
65
  /**
65
66
  * @typedef {Object} Static
@@ -67,7 +68,7 @@ declare class Server {
67
68
  * @property {string | string[]} [publicPath]
68
69
  * @property {boolean | ServeIndexOptions} [serveIndex]
69
70
  * @property {ServeStaticOptions} [staticOptions]
70
- * @property {boolean | WatchOptions & { aggregateTimeout?: number, ignored?: string | RegExp | string[], poll?: number | boolean }} [watch]
71
+ * @property {boolean | WatchOptions & { aggregateTimeout?: number, ignored?: AnymatchMatcher | string[], poll?: number | boolean }} [watch]
71
72
  */
72
73
  /**
73
74
  * @typedef {Object} NormalizedStatic
@@ -97,19 +98,19 @@ declare class Server {
97
98
  * @typedef {{ implementation: WebSocketServer, clients: ClientConnection[] }} WebSocketServerImplementation
98
99
  */
99
100
  /**
100
- * @typedef {{ [url: string]: string | HttpProxyMiddlewareOptions }} ProxyConfigMap
101
+ * @callback ByPass
102
+ * @param {Request} req
103
+ * @param {Response} res
104
+ * @param {ProxyConfigArrayItem} proxyConfig
101
105
  */
102
106
  /**
103
- * @typedef {HttpProxyMiddlewareOptions[]} ProxyArray
107
+ * @typedef {{ path?: HttpProxyMiddlewareOptionsFilter | undefined, context?: HttpProxyMiddlewareOptionsFilter | undefined } & { bypass?: ByPass } & HttpProxyMiddlewareOptions } ProxyConfigArrayItem
104
108
  */
105
109
  /**
106
- * @callback ByPass
107
- * @param {Request} req
108
- * @param {Response} res
109
- * @param {ProxyConfigArray} proxyConfig
110
+ * @typedef {(ProxyConfigArrayItem | ((req?: Request | undefined, res?: Response | undefined, next?: NextFunction | undefined) => ProxyConfigArrayItem))[]} ProxyConfigArray
110
111
  */
111
112
  /**
112
- * @typedef {{ path?: string | string[] | undefined, context?: string | string[] | HttpProxyMiddlewareOptionsFilter | undefined } & HttpProxyMiddlewareOptions & ByPass} ProxyConfigArray
113
+ * @typedef {{ [url: string]: string | ProxyConfigArrayItem }} ProxyConfigMap
113
114
  */
114
115
  /**
115
116
  * @typedef {Object} OpenApp
@@ -170,7 +171,7 @@ declare class Server {
170
171
  * @property {boolean} [http2]
171
172
  * @property {"http" | "https" | "spdy" | string | ServerConfiguration} [server]
172
173
  * @property {boolean | "sockjs" | "ws" | string | WebSocketServerConfiguration} [webSocketServer]
173
- * @property {ProxyConfigMap | ProxyConfigArray | ProxyArray} [proxy]
174
+ * @property {ProxyConfigMap | ProxyConfigArrayItem | ProxyConfigArray} [proxy]
174
175
  * @property {boolean | string | Open | Array<string | Open>} [open]
175
176
  * @property {boolean} [setupExitSignals]
176
177
  * @property {boolean | ClientConfiguration} [client]
@@ -199,10 +200,10 @@ declare class Server {
199
200
  type: string;
200
201
  multiple: boolean;
201
202
  description: string;
203
+ negatedDescription: string;
202
204
  path: string;
203
205
  }[];
204
206
  description: string;
205
- negatedDescription: string;
206
207
  simpleType: string;
207
208
  multiple: boolean;
208
209
  };
@@ -210,10 +211,11 @@ declare class Server {
210
211
  configs: {
211
212
  description: string;
212
213
  multiple: boolean;
213
- path: string;
214
+ path: string /** @typedef {import("http").IncomingMessage} IncomingMessage */;
214
215
  type: string;
215
216
  values: boolean[];
216
217
  }[];
218
+ /** @typedef {import("open").Options} OpenOptions */
217
219
  /** @typedef {import("https").ServerOptions & { spdy?: { plain?: boolean | undefined, ssl?: boolean | undefined, 'x-forwarded-for'?: string | undefined, protocol?: string | undefined, protocols?: string[] | undefined }}} ServerOptions */
218
220
  /**
219
221
  * @template Request, Response
@@ -232,7 +234,7 @@ declare class Server {
232
234
  /**
233
235
  * @typedef {Object} WatchFiles
234
236
  * @property {string | string[]} paths
235
- * @property {WatchOptions & { aggregateTimeout?: number, ignored?: string | RegExp | string[], poll?: number | boolean }} [options]
237
+ * @property {WatchOptions & { aggregateTimeout?: number, ignored?: AnymatchMatcher | string[], poll?: number | boolean }} [options]
236
238
  */
237
239
  /**
238
240
  * @typedef {Object} Static
@@ -240,7 +242,7 @@ declare class Server {
240
242
  * @property {string | string[]} [publicPath]
241
243
  * @property {boolean | ServeIndexOptions} [serveIndex]
242
244
  * @property {ServeStaticOptions} [staticOptions]
243
- * @property {boolean | WatchOptions & { aggregateTimeout?: number, ignored?: string | RegExp | string[], poll?: number | boolean }} [watch]
245
+ * @property {boolean | WatchOptions & { aggregateTimeout?: number, ignored?: AnymatchMatcher | string[], poll?: number | boolean }} [watch]
244
246
  */
245
247
  /**
246
248
  * @typedef {Object} NormalizedStatic
@@ -270,19 +272,19 @@ declare class Server {
270
272
  * @typedef {{ implementation: WebSocketServer, clients: ClientConnection[] }} WebSocketServerImplementation
271
273
  */
272
274
  /**
273
- * @typedef {{ [url: string]: string | HttpProxyMiddlewareOptions }} ProxyConfigMap
275
+ * @callback ByPass
276
+ * @param {Request} req
277
+ * @param {Response} res
278
+ * @param {ProxyConfigArrayItem} proxyConfig
274
279
  */
275
280
  /**
276
- * @typedef {HttpProxyMiddlewareOptions[]} ProxyArray
281
+ * @typedef {{ path?: HttpProxyMiddlewareOptionsFilter | undefined, context?: HttpProxyMiddlewareOptionsFilter | undefined } & { bypass?: ByPass } & HttpProxyMiddlewareOptions } ProxyConfigArrayItem
277
282
  */
278
283
  /**
279
- * @callback ByPass
280
- * @param {Request} req
281
- * @param {Response} res
282
- * @param {ProxyConfigArray} proxyConfig
284
+ * @typedef {(ProxyConfigArrayItem | ((req?: Request | undefined, res?: Response | undefined, next?: NextFunction | undefined) => ProxyConfigArrayItem))[]} ProxyConfigArray
283
285
  */
284
286
  /**
285
- * @typedef {{ path?: string | string[] | undefined, context?: string | string[] | HttpProxyMiddlewareOptionsFilter | undefined } & HttpProxyMiddlewareOptions & ByPass} ProxyConfigArray
287
+ * @typedef {{ [url: string]: string | ProxyConfigArrayItem }} ProxyConfigMap
286
288
  */
287
289
  /**
288
290
  * @typedef {Object} OpenApp
@@ -343,7 +345,7 @@ declare class Server {
343
345
  * @property {boolean} [http2]
344
346
  * @property {"http" | "https" | "spdy" | string | ServerConfiguration} [server]
345
347
  * @property {boolean | "sockjs" | "ws" | string | WebSocketServerConfiguration} [webSocketServer]
346
- * @property {ProxyConfigMap | ProxyConfigArray | ProxyArray} [proxy]
348
+ * @property {ProxyConfigMap | ProxyConfigArrayItem | ProxyConfigArray} [proxy]
347
349
  * @property {boolean | string | Open | Array<string | Open>} [open]
348
350
  * @property {boolean} [setupExitSignals]
349
351
  * @property {boolean | ClientConfiguration} [client]
@@ -374,10 +376,10 @@ declare class Server {
374
376
  type: string;
375
377
  multiple: boolean;
376
378
  description: string;
379
+ negatedDescription: string;
377
380
  path: string;
378
381
  }[];
379
382
  description: string;
380
- negatedDescription: string;
381
383
  simpleType: string;
382
384
  multiple: boolean;
383
385
  };
@@ -408,22 +410,100 @@ declare class Server {
408
410
  type: string;
409
411
  multiple: boolean;
410
412
  description: string;
413
+ negatedDescription: string;
411
414
  path: string;
412
415
  }[];
413
416
  description: string;
414
- negatedDescription: string;
415
417
  simpleType: string;
416
418
  multiple: boolean;
417
419
  };
418
420
  "client-reconnect": {
421
+ /**
422
+ * @typedef {{ path?: HttpProxyMiddlewareOptionsFilter | undefined, context?: HttpProxyMiddlewareOptionsFilter | undefined } & { bypass?: ByPass } & HttpProxyMiddlewareOptions } ProxyConfigArrayItem
423
+ */
424
+ /**
425
+ * @typedef {(ProxyConfigArrayItem | ((req?: Request | undefined, res?: Response | undefined, next?: NextFunction | undefined) => ProxyConfigArrayItem))[]} ProxyConfigArray
426
+ */
427
+ /**
428
+ * @typedef {{ [url: string]: string | ProxyConfigArrayItem }} ProxyConfigMap
429
+ */
430
+ /**
431
+ * @typedef {Object} OpenApp
432
+ * @property {string} [name]
433
+ * @property {string[]} [arguments]
434
+ */
435
+ /**
436
+ * @typedef {Object} Open
437
+ * @property {string | string[] | OpenApp} [app]
438
+ * @property {string | string[]} [target]
439
+ */
440
+ /**
441
+ * @typedef {Object} NormalizedOpen
442
+ * @property {string} target
443
+ * @property {import("open").Options} options
444
+ */
445
+ /**
446
+ * @typedef {Object} WebSocketURL
447
+ * @property {string} [hostname]
448
+ * @property {string} [password]
449
+ * @property {string} [pathname]
450
+ * @property {number | string} [port]
451
+ * @property {string} [protocol]
452
+ * @property {string} [username]
453
+ */
454
+ /**
455
+ * @typedef {Object} ClientConfiguration
456
+ * @property {"log" | "info" | "warn" | "error" | "none" | "verbose"} [logging]
457
+ * @property {boolean | { warnings?: boolean, errors?: boolean }} [overlay]
458
+ * @property {boolean} [progress]
459
+ * @property {boolean | number} [reconnect]
460
+ * @property {"ws" | "sockjs" | string} [webSocketTransport]
461
+ * @property {string | WebSocketURL} [webSocketURL]
462
+ */
463
+ /**
464
+ * @typedef {Array<{ key: string; value: string }> | Record<string, string | string[]>} Headers
465
+ */
466
+ /**
467
+ * @typedef {{ name?: string, path?: string, middleware: ExpressRequestHandler | ExpressErrorRequestHandler } | ExpressRequestHandler | ExpressErrorRequestHandler} Middleware
468
+ */
469
+ /**
470
+ * @typedef {Object} Configuration
471
+ * @property {boolean | string} [ipc]
472
+ * @property {Host} [host]
473
+ * @property {Port} [port]
474
+ * @property {boolean | "only"} [hot]
475
+ * @property {boolean} [liveReload]
476
+ * @property {DevMiddlewareOptions<Request, Response>} [devMiddleware]
477
+ * @property {boolean} [compress]
478
+ * @property {boolean} [magicHtml]
479
+ * @property {"auto" | "all" | string | string[]} [allowedHosts]
480
+ * @property {boolean | ConnectHistoryApiFallbackOptions} [historyApiFallback]
481
+ * @property {boolean} [setupExitSignals]
482
+ * @property {boolean | BonjourOptions} [bonjour]
483
+ * @property {string | string[] | WatchFiles | Array<string | WatchFiles>} [watchFiles]
484
+ * @property {boolean | string | Static | Array<string | Static>} [static]
485
+ * @property {boolean | ServerOptions} [https]
486
+ * @property {boolean} [http2]
487
+ * @property {"http" | "https" | "spdy" | string | ServerConfiguration} [server]
488
+ * @property {boolean | "sockjs" | "ws" | string | WebSocketServerConfiguration} [webSocketServer]
489
+ * @property {ProxyConfigMap | ProxyConfigArrayItem | ProxyConfigArray} [proxy]
490
+ * @property {boolean | string | Open | Array<string | Open>} [open]
491
+ * @property {boolean} [setupExitSignals]
492
+ * @property {boolean | ClientConfiguration} [client]
493
+ * @property {Headers | ((req: Request, res: Response, context: DevMiddlewareContext<Request, Response>) => Headers)} [headers]
494
+ * @property {(devServer: Server) => void} [onAfterSetupMiddleware]
495
+ * @property {(devServer: Server) => void} [onBeforeSetupMiddleware]
496
+ * @property {(devServer: Server) => void} [onListening]
497
+ * @property {(middlewares: Middleware[], devServer: Server) => Middleware[]} [setupMiddlewares]
498
+ */
419
499
  configs: {
420
500
  type: string;
421
501
  multiple: boolean;
422
502
  description: string;
503
+ negatedDescription: string;
423
504
  path: string;
424
505
  }[];
425
506
  description: string;
426
- negatedDescription: string;
427
507
  simpleType: string;
428
508
  multiple: boolean;
429
509
  };
@@ -530,10 +610,6 @@ declare class Server {
530
610
  path: string;
531
611
  }[];
532
612
  description: string;
533
- /**
534
- * @private
535
- * @type {string | undefined}
536
- */
537
613
  simpleType: string;
538
614
  multiple: boolean;
539
615
  };
@@ -542,10 +618,10 @@ declare class Server {
542
618
  type: string;
543
619
  multiple: boolean;
544
620
  description: string;
621
+ negatedDescription: string;
545
622
  path: string;
546
623
  }[];
547
624
  description: string;
548
- negatedDescription: string;
549
625
  simpleType: string;
550
626
  multiple: boolean;
551
627
  };
@@ -586,6 +662,7 @@ declare class Server {
586
662
  type: string;
587
663
  multiple: boolean;
588
664
  description: string;
665
+ negatedDescription: string;
589
666
  path: string;
590
667
  }
591
668
  | {
@@ -593,12 +670,16 @@ declare class Server {
593
670
  values: string[];
594
671
  multiple: boolean;
595
672
  description: string;
673
+ negatedDescription: string;
596
674
  path: string;
597
675
  }
598
676
  )[];
599
677
  description: string;
600
- negatedDescription: string;
601
678
  simpleType: string;
679
+ /**
680
+ * @param {"v4" | "v6"} family
681
+ * @returns {string | undefined}
682
+ */
602
683
  multiple: boolean;
603
684
  };
604
685
  http2: {
@@ -606,14 +687,10 @@ declare class Server {
606
687
  type: string;
607
688
  multiple: boolean;
608
689
  description: string;
690
+ negatedDescription: string;
609
691
  path: string;
610
692
  }[];
611
- /**
612
- * @param {Host} hostname
613
- * @returns {Promise<string>}
614
- */
615
693
  description: string;
616
- negatedDescription: string;
617
694
  simpleType: string;
618
695
  multiple: boolean;
619
696
  };
@@ -622,10 +699,10 @@ declare class Server {
622
699
  type: string;
623
700
  multiple: boolean;
624
701
  description: string;
702
+ negatedDescription: string;
625
703
  path: string;
626
704
  }[];
627
705
  description: string;
628
- negatedDescription: string;
629
706
  simpleType: string;
630
707
  multiple: boolean;
631
708
  };
@@ -659,9 +736,6 @@ declare class Server {
659
736
  path: string;
660
737
  }[];
661
738
  description: string;
662
- /**
663
- * @type {string[]}
664
- */
665
739
  simpleType: string;
666
740
  multiple: boolean;
667
741
  };
@@ -674,12 +748,12 @@ declare class Server {
674
748
  }[];
675
749
  description: string;
676
750
  multiple: boolean;
677
- simpleType: string;
751
+ simpleType: string /** @type {WebSocketURL} */;
678
752
  };
679
753
  "https-cert": {
680
754
  configs: {
681
755
  type: string;
682
- /** @type {ClientConfiguration} */ multiple: boolean;
756
+ multiple: boolean;
683
757
  description: string;
684
758
  path: string;
685
759
  }[];
@@ -780,10 +854,10 @@ declare class Server {
780
854
  type: string;
781
855
  multiple: boolean;
782
856
  description: string;
857
+ negatedDescription: string;
783
858
  path: string;
784
859
  }[];
785
860
  description: string;
786
- negatedDescription: string;
787
861
  simpleType: string;
788
862
  multiple: boolean;
789
863
  };
@@ -810,36 +884,44 @@ declare class Server {
810
884
  "live-reload": {
811
885
  configs: {
812
886
  type: string;
813
- /** @type {Object<string,string>} */ multiple: boolean;
887
+ multiple: boolean;
814
888
  description: string;
889
+ negatedDescription: string;
815
890
  path: string;
816
891
  }[];
817
892
  description: string;
818
- negatedDescription: string;
819
893
  simpleType: string;
820
- multiple: boolean /** @type {any} */;
894
+ multiple: boolean;
821
895
  };
822
896
  "magic-html": {
823
897
  configs: {
824
898
  type: string;
825
899
  multiple: boolean;
826
900
  description: string;
901
+ negatedDescription: string;
827
902
  path: string;
828
903
  }[];
829
904
  description: string;
830
- negatedDescription: string;
831
905
  simpleType: string;
832
906
  multiple: boolean;
833
907
  };
834
908
  open: {
835
- configs: {
836
- type: string;
837
- multiple: boolean;
838
- description: string;
839
- path: string;
840
- }[];
909
+ configs: (
910
+ | {
911
+ type: string;
912
+ multiple: boolean;
913
+ description: string;
914
+ path: string;
915
+ }
916
+ | {
917
+ type: string;
918
+ multiple: boolean;
919
+ description: string;
920
+ negatedDescription: string;
921
+ path: string;
922
+ }
923
+ )[];
841
924
  description: string;
842
- negatedDescription: string;
843
925
  simpleType: string;
844
926
  multiple: boolean;
845
927
  };
@@ -868,6 +950,10 @@ declare class Server {
868
950
  "open-app-name-reset": {
869
951
  configs: {
870
952
  type: string;
953
+ /**
954
+ * @param {WatchOptions & { aggregateTimeout?: number, ignored?: AnymatchMatcher | string[], poll?: number | boolean }} watchOptions
955
+ * @returns {WatchOptions}
956
+ */
871
957
  multiple: boolean;
872
958
  description: string;
873
959
  path: string;
@@ -895,7 +981,6 @@ declare class Server {
895
981
  path: string;
896
982
  }[];
897
983
  description: string;
898
- negatedDescription: string;
899
984
  simpleType: string;
900
985
  multiple: boolean;
901
986
  };
@@ -906,6 +991,10 @@ declare class Server {
906
991
  description: string;
907
992
  path: string;
908
993
  }[];
994
+ /**
995
+ * @param {string | Static | undefined} [optionsForStatic]
996
+ * @returns {NormalizedStatic}
997
+ */
909
998
  description: string;
910
999
  simpleType: string;
911
1000
  multiple: boolean;
@@ -1115,7 +1204,6 @@ declare class Server {
1115
1204
  path: string;
1116
1205
  }[];
1117
1206
  description: string;
1118
- /** @type {any} */
1119
1207
  simpleType: string;
1120
1208
  multiple: boolean;
1121
1209
  };
@@ -1157,10 +1245,10 @@ declare class Server {
1157
1245
  type: string;
1158
1246
  multiple: boolean;
1159
1247
  description: string;
1248
+ negatedDescription: string;
1160
1249
  path: string;
1161
1250
  }[];
1162
1251
  description: string;
1163
- negatedDescription: string;
1164
1252
  simpleType: string;
1165
1253
  multiple: boolean;
1166
1254
  };
@@ -1169,10 +1257,10 @@ declare class Server {
1169
1257
  type: string;
1170
1258
  multiple: boolean;
1171
1259
  description: string;
1260
+ negatedDescription: string;
1172
1261
  path: string;
1173
1262
  }[];
1174
1263
  description: string;
1175
- negatedDescription: string;
1176
1264
  simpleType: string;
1177
1265
  multiple: boolean;
1178
1266
  };
@@ -1229,7 +1317,7 @@ declare class Server {
1229
1317
  configs: (
1230
1318
  | {
1231
1319
  description: string;
1232
- multiple: boolean;
1320
+ /** @type {ServerOptions & { cacert?: ServerOptions["ca"] }} */ multiple: boolean;
1233
1321
  path: string;
1234
1322
  type: string;
1235
1323
  values: string[];
@@ -1243,6 +1331,7 @@ declare class Server {
1243
1331
  )[];
1244
1332
  description: string;
1245
1333
  simpleType: string;
1334
+ /** @type {ServerOptions & { cacert?: ServerOptions["ca"] }} */
1246
1335
  multiple: boolean;
1247
1336
  };
1248
1337
  };
@@ -1311,6 +1400,9 @@ declare class Server {
1311
1400
  )[];
1312
1401
  description: string;
1313
1402
  link: string;
1403
+ cli: {
1404
+ negatedDescription: string;
1405
+ };
1314
1406
  };
1315
1407
  Client: {
1316
1408
  description: string;
@@ -1341,6 +1433,148 @@ declare class Server {
1341
1433
  webSocketTransport: {
1342
1434
  $ref: string;
1343
1435
  };
1436
+ /** @typedef {import("net").Socket} Socket */
1437
+ /** @typedef {import("http").IncomingMessage} IncomingMessage */
1438
+ /** @typedef {import("open").Options} OpenOptions */
1439
+ /** @typedef {import("https").ServerOptions & { spdy?: { plain?: boolean | undefined, ssl?: boolean | undefined, 'x-forwarded-for'?: string | undefined, protocol?: string | undefined, protocols?: string[] | undefined }}} ServerOptions */
1440
+ /**
1441
+ * @template Request, Response
1442
+ * @typedef {import("webpack-dev-middleware").Options<Request, Response>} DevMiddlewareOptions
1443
+ */
1444
+ /**
1445
+ * @template Request, Response
1446
+ * @typedef {import("webpack-dev-middleware").Context<Request, Response>} DevMiddlewareContext
1447
+ */
1448
+ /**
1449
+ * @typedef {"local-ip" | "local-ipv4" | "local-ipv6" | string} Host
1450
+ */
1451
+ /**
1452
+ * @typedef {number | string | "auto"} Port
1453
+ */
1454
+ /**
1455
+ * @typedef {Object} WatchFiles
1456
+ * @property {string | string[]} paths
1457
+ * @property {WatchOptions & { aggregateTimeout?: number, ignored?: AnymatchMatcher | string[], poll?: number | boolean }} [options]
1458
+ */
1459
+ /**
1460
+ * @typedef {Object} Static
1461
+ * @property {string} [directory]
1462
+ * @property {string | string[]} [publicPath]
1463
+ * @property {boolean | ServeIndexOptions} [serveIndex]
1464
+ * @property {ServeStaticOptions} [staticOptions]
1465
+ * @property {boolean | WatchOptions & { aggregateTimeout?: number, ignored?: AnymatchMatcher | string[], poll?: number | boolean }} [watch]
1466
+ */
1467
+ /**
1468
+ * @typedef {Object} NormalizedStatic
1469
+ * @property {string} directory
1470
+ * @property {string[]} publicPath
1471
+ * @property {false | ServeIndexOptions} serveIndex
1472
+ * @property {ServeStaticOptions} staticOptions
1473
+ * @property {false | WatchOptions} watch
1474
+ */
1475
+ /**
1476
+ * @typedef {Object} ServerConfiguration
1477
+ * @property {"http" | "https" | "spdy" | string} [type]
1478
+ * @property {ServerOptions} [options]
1479
+ */
1480
+ /**
1481
+ * @typedef {Object} WebSocketServerConfiguration
1482
+ * @property {"sockjs" | "ws" | string | Function} [type]
1483
+ * @property {Record<string, any>} [options]
1484
+ */
1485
+ /**
1486
+ * @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
1487
+ */
1488
+ /**
1489
+ * @typedef {import("ws").WebSocketServer | import("sockjs").Server & { close: import("ws").WebSocketServer["close"] }} WebSocketServer
1490
+ */
1491
+ /**
1492
+ * @typedef {{ implementation: WebSocketServer, clients: ClientConnection[] }} WebSocketServerImplementation
1493
+ */
1494
+ /**
1495
+ * @callback ByPass
1496
+ * @param {Request} req
1497
+ * @param {Response} res
1498
+ * @param {ProxyConfigArrayItem} proxyConfig
1499
+ */
1500
+ /**
1501
+ * @typedef {{ path?: HttpProxyMiddlewareOptionsFilter | undefined, context?: HttpProxyMiddlewareOptionsFilter | undefined } & { bypass?: ByPass } & HttpProxyMiddlewareOptions } ProxyConfigArrayItem
1502
+ */
1503
+ /**
1504
+ * @typedef {(ProxyConfigArrayItem | ((req?: Request | undefined, res?: Response | undefined, next?: NextFunction | undefined) => ProxyConfigArrayItem))[]} ProxyConfigArray
1505
+ */
1506
+ /**
1507
+ * @typedef {{ [url: string]: string | ProxyConfigArrayItem }} ProxyConfigMap
1508
+ */
1509
+ /**
1510
+ * @typedef {Object} OpenApp
1511
+ * @property {string} [name]
1512
+ * @property {string[]} [arguments]
1513
+ */
1514
+ /**
1515
+ * @typedef {Object} Open
1516
+ * @property {string | string[] | OpenApp} [app]
1517
+ * @property {string | string[]} [target]
1518
+ */
1519
+ /**
1520
+ * @typedef {Object} NormalizedOpen
1521
+ * @property {string} target
1522
+ * @property {import("open").Options} options
1523
+ */
1524
+ /**
1525
+ * @typedef {Object} WebSocketURL
1526
+ * @property {string} [hostname]
1527
+ * @property {string} [password]
1528
+ * @property {string} [pathname]
1529
+ * @property {number | string} [port]
1530
+ * @property {string} [protocol]
1531
+ * @property {string} [username]
1532
+ */
1533
+ /**
1534
+ * @typedef {Object} ClientConfiguration
1535
+ * @property {"log" | "info" | "warn" | "error" | "none" | "verbose"} [logging]
1536
+ * @property {boolean | { warnings?: boolean, errors?: boolean }} [overlay]
1537
+ * @property {boolean} [progress]
1538
+ * @property {boolean | number} [reconnect]
1539
+ * @property {"ws" | "sockjs" | string} [webSocketTransport]
1540
+ * @property {string | WebSocketURL} [webSocketURL]
1541
+ */
1542
+ /**
1543
+ * @typedef {Array<{ key: string; value: string }> | Record<string, string | string[]>} Headers
1544
+ */
1545
+ /**
1546
+ * @typedef {{ name?: string, path?: string, middleware: ExpressRequestHandler | ExpressErrorRequestHandler } | ExpressRequestHandler | ExpressErrorRequestHandler} Middleware
1547
+ */
1548
+ /**
1549
+ * @typedef {Object} Configuration
1550
+ * @property {boolean | string} [ipc]
1551
+ * @property {Host} [host]
1552
+ * @property {Port} [port]
1553
+ * @property {boolean | "only"} [hot]
1554
+ * @property {boolean} [liveReload]
1555
+ * @property {DevMiddlewareOptions<Request, Response>} [devMiddleware]
1556
+ * @property {boolean} [compress]
1557
+ * @property {boolean} [magicHtml]
1558
+ * @property {"auto" | "all" | string | string[]} [allowedHosts]
1559
+ * @property {boolean | ConnectHistoryApiFallbackOptions} [historyApiFallback]
1560
+ * @property {boolean} [setupExitSignals]
1561
+ * @property {boolean | BonjourOptions} [bonjour]
1562
+ * @property {string | string[] | WatchFiles | Array<string | WatchFiles>} [watchFiles]
1563
+ * @property {boolean | string | Static | Array<string | Static>} [static]
1564
+ * @property {boolean | ServerOptions} [https]
1565
+ * @property {boolean} [http2]
1566
+ * @property {"http" | "https" | "spdy" | string | ServerConfiguration} [server]
1567
+ * @property {boolean | "sockjs" | "ws" | string | WebSocketServerConfiguration} [webSocketServer]
1568
+ * @property {ProxyConfigMap | ProxyConfigArrayItem | ProxyConfigArray} [proxy]
1569
+ * @property {boolean | string | Open | Array<string | Open>} [open]
1570
+ * @property {boolean} [setupExitSignals]
1571
+ * @property {boolean | ClientConfiguration} [client]
1572
+ * @property {Headers | ((req: Request, res: Response, context: DevMiddlewareContext<Request, Response>) => Headers)} [headers]
1573
+ * @property {(devServer: Server) => void} [onAfterSetupMiddleware]
1574
+ * @property {(devServer: Server) => void} [onBeforeSetupMiddleware]
1575
+ * @property {(devServer: Server) => void} [onListening]
1576
+ * @property {(middlewares: Middleware[], devServer: Server) => Middleware[]} [setupMiddlewares]
1577
+ */
1344
1578
  webSocketURL: {
1345
1579
  $ref: string;
1346
1580
  };
@@ -1351,145 +1585,6 @@ declare class Server {
1351
1585
  };
1352
1586
  ClientLogging: {
1353
1587
  enum: string[];
1354
- /** @typedef {import("https").ServerOptions & { spdy?: { plain?: boolean | undefined, ssl?: boolean | undefined, 'x-forwarded-for'?: string | undefined, protocol?: string | undefined, protocols?: string[] | undefined }}} ServerOptions */
1355
- /**
1356
- * @template Request, Response
1357
- * @typedef {import("webpack-dev-middleware").Options<Request, Response>} DevMiddlewareOptions
1358
- */
1359
- /**
1360
- * @template Request, Response
1361
- * @typedef {import("webpack-dev-middleware").Context<Request, Response>} DevMiddlewareContext
1362
- */
1363
- /**
1364
- * @typedef {"local-ip" | "local-ipv4" | "local-ipv6" | string} Host
1365
- */
1366
- /**
1367
- * @typedef {number | string | "auto"} Port
1368
- */
1369
- /**
1370
- * @typedef {Object} WatchFiles
1371
- * @property {string | string[]} paths
1372
- * @property {WatchOptions & { aggregateTimeout?: number, ignored?: string | RegExp | string[], poll?: number | boolean }} [options]
1373
- */
1374
- /**
1375
- * @typedef {Object} Static
1376
- * @property {string} [directory]
1377
- * @property {string | string[]} [publicPath]
1378
- * @property {boolean | ServeIndexOptions} [serveIndex]
1379
- * @property {ServeStaticOptions} [staticOptions]
1380
- * @property {boolean | WatchOptions & { aggregateTimeout?: number, ignored?: string | RegExp | string[], poll?: number | boolean }} [watch]
1381
- */
1382
- /**
1383
- * @typedef {Object} NormalizedStatic
1384
- * @property {string} directory
1385
- * @property {string[]} publicPath
1386
- * @property {false | ServeIndexOptions} serveIndex
1387
- * @property {ServeStaticOptions} staticOptions
1388
- * @property {false | WatchOptions} watch
1389
- */
1390
- /**
1391
- * @typedef {Object} ServerConfiguration
1392
- * @property {"http" | "https" | "spdy" | string} [type]
1393
- * @property {ServerOptions} [options]
1394
- */
1395
- /**
1396
- * @typedef {Object} WebSocketServerConfiguration
1397
- * @property {"sockjs" | "ws" | string | Function} [type]
1398
- * @property {Record<string, any>} [options]
1399
- */
1400
- /**
1401
- * @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
1402
- */
1403
- /**
1404
- * @typedef {import("ws").WebSocketServer | import("sockjs").Server & { close: import("ws").WebSocketServer["close"] }} WebSocketServer
1405
- */
1406
- /**
1407
- * @typedef {{ implementation: WebSocketServer, clients: ClientConnection[] }} WebSocketServerImplementation
1408
- */
1409
- /**
1410
- * @typedef {{ [url: string]: string | HttpProxyMiddlewareOptions }} ProxyConfigMap
1411
- */
1412
- /**
1413
- * @typedef {HttpProxyMiddlewareOptions[]} ProxyArray
1414
- */
1415
- /**
1416
- * @callback ByPass
1417
- * @param {Request} req
1418
- * @param {Response} res
1419
- * @param {ProxyConfigArray} proxyConfig
1420
- */
1421
- /**
1422
- * @typedef {{ path?: string | string[] | undefined, context?: string | string[] | HttpProxyMiddlewareOptionsFilter | undefined } & HttpProxyMiddlewareOptions & ByPass} ProxyConfigArray
1423
- */
1424
- /**
1425
- * @typedef {Object} OpenApp
1426
- * @property {string} [name]
1427
- * @property {string[]} [arguments]
1428
- */
1429
- /**
1430
- * @typedef {Object} Open
1431
- * @property {string | string[] | OpenApp} [app]
1432
- * @property {string | string[]} [target]
1433
- */
1434
- /**
1435
- * @typedef {Object} NormalizedOpen
1436
- * @property {string} target
1437
- * @property {import("open").Options} options
1438
- */
1439
- /**
1440
- * @typedef {Object} WebSocketURL
1441
- * @property {string} [hostname]
1442
- * @property {string} [password]
1443
- * @property {string} [pathname]
1444
- * @property {number | string} [port]
1445
- * @property {string} [protocol]
1446
- * @property {string} [username]
1447
- */
1448
- /**
1449
- * @typedef {Object} ClientConfiguration
1450
- * @property {"log" | "info" | "warn" | "error" | "none" | "verbose"} [logging]
1451
- * @property {boolean | { warnings?: boolean, errors?: boolean }} [overlay]
1452
- * @property {boolean} [progress]
1453
- * @property {boolean | number} [reconnect]
1454
- * @property {"ws" | "sockjs" | string} [webSocketTransport]
1455
- * @property {string | WebSocketURL} [webSocketURL]
1456
- */
1457
- /**
1458
- * @typedef {Array<{ key: string; value: string }> | Record<string, string | string[]>} Headers
1459
- */
1460
- /**
1461
- * @typedef {{ name?: string, path?: string, middleware: ExpressRequestHandler | ExpressErrorRequestHandler } | ExpressRequestHandler | ExpressErrorRequestHandler} Middleware
1462
- */
1463
- /**
1464
- * @typedef {Object} Configuration
1465
- * @property {boolean | string} [ipc]
1466
- * @property {Host} [host]
1467
- * @property {Port} [port]
1468
- * @property {boolean | "only"} [hot]
1469
- * @property {boolean} [liveReload]
1470
- * @property {DevMiddlewareOptions<Request, Response>} [devMiddleware]
1471
- * @property {boolean} [compress]
1472
- * @property {boolean} [magicHtml]
1473
- * @property {"auto" | "all" | string | string[]} [allowedHosts]
1474
- * @property {boolean | ConnectHistoryApiFallbackOptions} [historyApiFallback]
1475
- * @property {boolean} [setupExitSignals]
1476
- * @property {boolean | BonjourOptions} [bonjour]
1477
- * @property {string | string[] | WatchFiles | Array<string | WatchFiles>} [watchFiles]
1478
- * @property {boolean | string | Static | Array<string | Static>} [static]
1479
- * @property {boolean | ServerOptions} [https]
1480
- * @property {boolean} [http2]
1481
- * @property {"http" | "https" | "spdy" | string | ServerConfiguration} [server]
1482
- * @property {boolean | "sockjs" | "ws" | string | WebSocketServerConfiguration} [webSocketServer]
1483
- * @property {ProxyConfigMap | ProxyConfigArray | ProxyArray} [proxy]
1484
- * @property {boolean | string | Open | Array<string | Open>} [open]
1485
- * @property {boolean} [setupExitSignals]
1486
- * @property {boolean | ClientConfiguration} [client]
1487
- * @property {Headers | ((req: Request, res: Response, context: DevMiddlewareContext<Request, Response>) => Headers)} [headers]
1488
- * @property {(devServer: Server) => void} [onAfterSetupMiddleware]
1489
- * @property {(devServer: Server) => void} [onBeforeSetupMiddleware]
1490
- * @property {(devServer: Server) => void} [onListening]
1491
- * @property {(middlewares: Middleware[], devServer: Server) => Middleware[]} [setupMiddlewares]
1492
- */
1493
1588
  description: string;
1494
1589
  link: string;
1495
1590
  };
@@ -1497,78 +1592,70 @@ declare class Server {
1497
1592
  anyOf: (
1498
1593
  | {
1499
1594
  description: string;
1500
- link: string;
1501
- type: string;
1502
- additionalProperties?: undefined;
1503
- properties?: undefined;
1504
- }
1505
- | {
1506
- type: string;
1507
- additionalProperties: boolean;
1508
- properties: {
1509
- errors: {
1510
- description: string;
1511
- type: string;
1512
- };
1513
- warnings: {
1514
- description: string;
1515
- type: string;
1516
- };
1517
- };
1518
- description?: undefined;
1519
- link?: undefined;
1520
- }
1521
- )[];
1522
- };
1523
- ClientProgress: {
1524
- description: string;
1525
- link: string;
1526
- type: string;
1527
- };
1528
- ClientReconnect: {
1529
- description: string;
1530
- link: string;
1531
- anyOf: (
1532
- | {
1533
- type: string;
1534
- minimum?: undefined;
1535
- }
1536
- | {
1537
- type: string;
1538
- minimum: number;
1539
- }
1540
- )[];
1541
- };
1542
- ClientWebSocketTransport: {
1543
- anyOf: {
1544
- $ref: string;
1545
- }[];
1546
- description: string;
1547
- link: string;
1548
- };
1549
- ClientWebSocketTransportEnum: {
1550
- enum: string[];
1551
- };
1552
- ClientWebSocketTransportString: {
1553
- type: string;
1554
- minLength: number;
1555
- };
1556
- ClientWebSocketURL: {
1557
- description: string;
1558
- link: string;
1559
- anyOf: (
1560
- | {
1561
1595
  /**
1562
- * @typedef {HttpProxyMiddlewareOptions[]} ProxyArray
1596
+ * @template Request, Response
1597
+ * @typedef {import("webpack-dev-middleware").Context<Request, Response>} DevMiddlewareContext
1598
+ */
1599
+ /**
1600
+ * @typedef {"local-ip" | "local-ipv4" | "local-ipv6" | string} Host
1601
+ */
1602
+ /**
1603
+ * @typedef {number | string | "auto"} Port
1604
+ */
1605
+ /**
1606
+ * @typedef {Object} WatchFiles
1607
+ * @property {string | string[]} paths
1608
+ * @property {WatchOptions & { aggregateTimeout?: number, ignored?: AnymatchMatcher | string[], poll?: number | boolean }} [options]
1609
+ */
1610
+ /**
1611
+ * @typedef {Object} Static
1612
+ * @property {string} [directory]
1613
+ * @property {string | string[]} [publicPath]
1614
+ * @property {boolean | ServeIndexOptions} [serveIndex]
1615
+ * @property {ServeStaticOptions} [staticOptions]
1616
+ * @property {boolean | WatchOptions & { aggregateTimeout?: number, ignored?: AnymatchMatcher | string[], poll?: number | boolean }} [watch]
1617
+ */
1618
+ /**
1619
+ * @typedef {Object} NormalizedStatic
1620
+ * @property {string} directory
1621
+ * @property {string[]} publicPath
1622
+ * @property {false | ServeIndexOptions} serveIndex
1623
+ * @property {ServeStaticOptions} staticOptions
1624
+ * @property {false | WatchOptions} watch
1625
+ */
1626
+ /**
1627
+ * @typedef {Object} ServerConfiguration
1628
+ * @property {"http" | "https" | "spdy" | string} [type]
1629
+ * @property {ServerOptions} [options]
1630
+ */
1631
+ /**
1632
+ * @typedef {Object} WebSocketServerConfiguration
1633
+ * @property {"sockjs" | "ws" | string | Function} [type]
1634
+ * @property {Record<string, any>} [options]
1635
+ */
1636
+ /**
1637
+ * @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
1638
+ */
1639
+ /**
1640
+ * @typedef {import("ws").WebSocketServer | import("sockjs").Server & { close: import("ws").WebSocketServer["close"] }} WebSocketServer
1641
+ */
1642
+ /**
1643
+ * @typedef {{ implementation: WebSocketServer, clients: ClientConnection[] }} WebSocketServerImplementation
1563
1644
  */
1564
1645
  /**
1565
1646
  * @callback ByPass
1566
1647
  * @param {Request} req
1567
1648
  * @param {Response} res
1568
- * @param {ProxyConfigArray} proxyConfig
1649
+ * @param {ProxyConfigArrayItem} proxyConfig
1650
+ */
1651
+ /**
1652
+ * @typedef {{ path?: HttpProxyMiddlewareOptionsFilter | undefined, context?: HttpProxyMiddlewareOptionsFilter | undefined } & { bypass?: ByPass } & HttpProxyMiddlewareOptions } ProxyConfigArrayItem
1569
1653
  */
1570
1654
  /**
1571
- * @typedef {{ path?: string | string[] | undefined, context?: string | string[] | HttpProxyMiddlewareOptionsFilter | undefined } & HttpProxyMiddlewareOptions & ByPass} ProxyConfigArray
1655
+ * @typedef {(ProxyConfigArrayItem | ((req?: Request | undefined, res?: Response | undefined, next?: NextFunction | undefined) => ProxyConfigArrayItem))[]} ProxyConfigArray
1656
+ */
1657
+ /**
1658
+ * @typedef {{ [url: string]: string | ProxyConfigArrayItem }} ProxyConfigMap
1572
1659
  */
1573
1660
  /**
1574
1661
  * @typedef {Object} OpenApp
@@ -1629,7 +1716,7 @@ declare class Server {
1629
1716
  * @property {boolean} [http2]
1630
1717
  * @property {"http" | "https" | "spdy" | string | ServerConfiguration} [server]
1631
1718
  * @property {boolean | "sockjs" | "ws" | string | WebSocketServerConfiguration} [webSocketServer]
1632
- * @property {ProxyConfigMap | ProxyConfigArray | ProxyArray} [proxy]
1719
+ * @property {ProxyConfigMap | ProxyConfigArrayItem | ProxyConfigArray} [proxy]
1633
1720
  * @property {boolean | string | Open | Array<string | Open>} [open]
1634
1721
  * @property {boolean} [setupExitSignals]
1635
1722
  * @property {boolean | ClientConfiguration} [client]
@@ -1639,6 +1726,77 @@ declare class Server {
1639
1726
  * @property {(devServer: Server) => void} [onListening]
1640
1727
  * @property {(middlewares: Middleware[], devServer: Server) => Middleware[]} [setupMiddlewares]
1641
1728
  */
1729
+ link: string;
1730
+ type: string;
1731
+ cli: {
1732
+ negatedDescription: string;
1733
+ };
1734
+ additionalProperties?: undefined;
1735
+ properties?: undefined;
1736
+ }
1737
+ | {
1738
+ type: string;
1739
+ additionalProperties: boolean;
1740
+ properties: {
1741
+ errors: {
1742
+ description: string;
1743
+ type: string;
1744
+ };
1745
+ warnings: {
1746
+ description: string;
1747
+ type: string;
1748
+ };
1749
+ };
1750
+ description?: undefined;
1751
+ link?: undefined;
1752
+ cli?: undefined;
1753
+ }
1754
+ )[];
1755
+ };
1756
+ ClientProgress: {
1757
+ description: string;
1758
+ link: string;
1759
+ type: string;
1760
+ cli: {
1761
+ negatedDescription: string;
1762
+ };
1763
+ };
1764
+ ClientReconnect: {
1765
+ description: string;
1766
+ link: string;
1767
+ anyOf: (
1768
+ | {
1769
+ type: string;
1770
+ minimum?: undefined;
1771
+ }
1772
+ | {
1773
+ type: string;
1774
+ minimum: number;
1775
+ }
1776
+ )[];
1777
+ cli: {
1778
+ negatedDescription: string;
1779
+ };
1780
+ };
1781
+ ClientWebSocketTransport: {
1782
+ anyOf: {
1783
+ $ref: string;
1784
+ }[];
1785
+ description: string;
1786
+ link: string;
1787
+ };
1788
+ ClientWebSocketTransportEnum: {
1789
+ enum: string[];
1790
+ };
1791
+ ClientWebSocketTransportString: {
1792
+ type: string;
1793
+ minLength: number;
1794
+ };
1795
+ ClientWebSocketURL: {
1796
+ description: string;
1797
+ link: string;
1798
+ anyOf: (
1799
+ | {
1642
1800
  type: string;
1643
1801
  minLength: number;
1644
1802
  additionalProperties?: undefined;
@@ -1702,6 +1860,9 @@ declare class Server {
1702
1860
  type: string;
1703
1861
  description: string;
1704
1862
  link: string;
1863
+ cli: {
1864
+ negatedDescription: string;
1865
+ };
1705
1866
  };
1706
1867
  DevMiddleware: {
1707
1868
  description: string;
@@ -1713,11 +1874,17 @@ declare class Server {
1713
1874
  type: string;
1714
1875
  description: string;
1715
1876
  link: string;
1877
+ cli: {
1878
+ negatedDescription: string;
1879
+ };
1716
1880
  };
1717
1881
  HTTPS: {
1718
1882
  anyOf: (
1719
1883
  | {
1720
1884
  type: string;
1885
+ cli: {
1886
+ negatedDescription: string;
1887
+ };
1721
1888
  additionalProperties?: undefined;
1722
1889
  properties?: undefined;
1723
1890
  }
@@ -1732,6 +1899,9 @@ declare class Server {
1732
1899
  requestCert: {
1733
1900
  type: string;
1734
1901
  description: string;
1902
+ cli: {
1903
+ negatedDescription: string;
1904
+ };
1735
1905
  };
1736
1906
  ca: {
1737
1907
  anyOf: (
@@ -1764,6 +1934,9 @@ declare class Server {
1764
1934
  )[];
1765
1935
  description: string;
1766
1936
  };
1937
+ /**
1938
+ * @type {FSWatcher[]}
1939
+ */
1767
1940
  cacert: {
1768
1941
  anyOf: (
1769
1942
  | {
@@ -1815,9 +1988,6 @@ declare class Server {
1815
1988
  }
1816
1989
  | {
1817
1990
  type: string;
1818
- /**
1819
- * @type {Socket[]}
1820
- */
1821
1991
  items?: undefined;
1822
1992
  instanceof?: undefined;
1823
1993
  }
@@ -1840,11 +2010,6 @@ declare class Server {
1840
2010
  instanceof?: undefined;
1841
2011
  }
1842
2012
  | {
1843
- /**
1844
- * @private
1845
- * @returns {StatsOptions}
1846
- * @constructor
1847
- */
1848
2013
  instanceof: string;
1849
2014
  type?: undefined;
1850
2015
  }
@@ -1883,7 +2048,6 @@ declare class Server {
1883
2048
  }
1884
2049
  | {
1885
2050
  type: string;
1886
- /** @type {NetworkInterfaceInfo[]} */
1887
2051
  additionalProperties: boolean;
1888
2052
  instanceof?: undefined;
1889
2053
  }
@@ -1922,10 +2086,6 @@ declare class Server {
1922
2086
  }
1923
2087
  | {
1924
2088
  type: string;
1925
- /**
1926
- * @param {Host} hostname
1927
- * @returns {Promise<string>}
1928
- */
1929
2089
  additionalProperties: boolean;
1930
2090
  instanceof?: undefined;
1931
2091
  }
@@ -1947,9 +2107,13 @@ declare class Server {
1947
2107
  description: string;
1948
2108
  };
1949
2109
  };
2110
+ cli?: undefined;
1950
2111
  }
1951
2112
  )[];
1952
2113
  description: string;
2114
+ /**
2115
+ * @type {string | undefined}
2116
+ */
1953
2117
  link: string;
1954
2118
  };
1955
2119
  HeaderObject: {
@@ -1995,6 +2159,9 @@ declare class Server {
1995
2159
  description: string;
1996
2160
  link: string;
1997
2161
  };
2162
+ /**
2163
+ * @type {string[]}
2164
+ */
1998
2165
  HistoryApiFallback: {
1999
2166
  anyOf: (
2000
2167
  | {
@@ -2040,12 +2207,15 @@ declare class Server {
2040
2207
  )[];
2041
2208
  description: string;
2042
2209
  link: string;
2210
+ cli: {
2211
+ negatedDescription: string;
2212
+ };
2043
2213
  };
2044
2214
  IPC: {
2045
2215
  anyOf: (
2046
2216
  | {
2047
2217
  type: string;
2048
- minLength: number;
2218
+ /** @type {ServerConfiguration} */ minLength: number;
2049
2219
  enum?: undefined;
2050
2220
  }
2051
2221
  | {
@@ -2060,12 +2230,17 @@ declare class Server {
2060
2230
  LiveReload: {
2061
2231
  type: string;
2062
2232
  description: string;
2063
- /** @type {{ type: WebSocketServerConfiguration["type"], options: NonNullable<WebSocketServerConfiguration["options"]> }} */
2233
+ cli: {
2234
+ negatedDescription: string;
2235
+ };
2064
2236
  link: string;
2065
2237
  };
2066
2238
  MagicHTML: {
2067
2239
  type: string;
2068
2240
  description: string;
2241
+ cli: {
2242
+ negatedDescription: string;
2243
+ };
2069
2244
  link: string;
2070
2245
  };
2071
2246
  OnAfterSetupMiddleware: {
@@ -2105,6 +2280,9 @@ declare class Server {
2105
2280
  };
2106
2281
  OpenBoolean: {
2107
2282
  type: string;
2283
+ cli: {
2284
+ negatedDescription: string;
2285
+ };
2108
2286
  };
2109
2287
  OpenObject: {
2110
2288
  type: string;
@@ -2159,11 +2337,15 @@ declare class Server {
2159
2337
  };
2160
2338
  minLength?: undefined;
2161
2339
  description?: undefined;
2340
+ cli?: undefined;
2162
2341
  }
2163
2342
  | {
2164
2343
  type: string;
2165
2344
  minLength: number;
2166
2345
  description: string;
2346
+ cli: {
2347
+ description: string;
2348
+ };
2167
2349
  additionalProperties?: undefined;
2168
2350
  properties?: undefined;
2169
2351
  }
@@ -2234,6 +2416,10 @@ declare class Server {
2234
2416
  }[];
2235
2417
  link: string;
2236
2418
  description: string;
2419
+ /**
2420
+ * @private
2421
+ * @returns {Compiler["options"]}
2422
+ */
2237
2423
  };
2238
2424
  ServerType: {
2239
2425
  enum: string[];
@@ -2248,8 +2434,8 @@ declare class Server {
2248
2434
  type: string;
2249
2435
  minLength: number;
2250
2436
  cli: {
2251
- exclude: boolean;
2252
- };
2437
+ exclude: boolean /** @type {MultiCompiler} */;
2438
+ } /** @type {MultiCompiler} */;
2253
2439
  };
2254
2440
  ServerObject: {
2255
2441
  type: string;
@@ -2265,10 +2451,9 @@ declare class Server {
2265
2451
  };
2266
2452
  additionalProperties: boolean;
2267
2453
  };
2268
- /** @type {any} */
2269
2454
  ServerOptions: {
2270
2455
  type: string;
2271
- additionalProperties: boolean;
2456
+ /** @type {MultiCompiler} */ additionalProperties: boolean;
2272
2457
  properties: {
2273
2458
  passphrase: {
2274
2459
  type: string;
@@ -2294,10 +2479,6 @@ declare class Server {
2294
2479
  }
2295
2480
  )[];
2296
2481
  };
2297
- /**
2298
- * @private
2299
- * @returns {Compiler["options"]}
2300
- */
2301
2482
  instanceof?: undefined;
2302
2483
  }
2303
2484
  | {
@@ -2567,6 +2748,9 @@ declare class Server {
2567
2748
  }
2568
2749
  )[];
2569
2750
  description: string;
2751
+ cli: {
2752
+ negatedDescription: string;
2753
+ };
2570
2754
  link: string;
2571
2755
  };
2572
2756
  watch: {
@@ -2583,6 +2767,9 @@ declare class Server {
2583
2767
  }
2584
2768
  )[];
2585
2769
  description: string;
2770
+ cli: {
2771
+ negatedDescription: string;
2772
+ };
2586
2773
  link: string;
2587
2774
  };
2588
2775
  };
@@ -2669,7 +2856,10 @@ declare class Server {
2669
2856
  enum?: undefined;
2670
2857
  }
2671
2858
  )[];
2672
- description: string;
2859
+ /** @type {ServerOptions} */
2860
+ cli: {
2861
+ description: string;
2862
+ };
2673
2863
  };
2674
2864
  WebSocketServerFunction: {
2675
2865
  instanceof: string;
@@ -2754,7 +2944,7 @@ declare class Server {
2754
2944
  $ref: string;
2755
2945
  };
2756
2946
  port: {
2757
- $ref: string /** @type {Array<keyof ServerOptions>} */;
2947
+ $ref: string;
2758
2948
  };
2759
2949
  proxy: {
2760
2950
  $ref: string;
@@ -3104,6 +3294,7 @@ declare namespace Server {
3104
3294
  NextFunction,
3105
3295
  ExpressRequestHandler,
3106
3296
  ExpressErrorRequestHandler,
3297
+ AnymatchMatcher,
3107
3298
  WatchOptions,
3108
3299
  FSWatcher,
3109
3300
  ConnectHistoryApiFallbackOptions,
@@ -3132,10 +3323,10 @@ declare namespace Server {
3132
3323
  ClientConnection,
3133
3324
  WebSocketServer,
3134
3325
  WebSocketServerImplementation,
3135
- ProxyConfigMap,
3136
- ProxyArray,
3137
3326
  ByPass,
3327
+ ProxyConfigArrayItem,
3138
3328
  ProxyConfigArray,
3329
+ ProxyConfigMap,
3139
3330
  OpenApp,
3140
3331
  Open,
3141
3332
  NormalizedOpen,
@@ -3185,7 +3376,7 @@ type Configuration = {
3185
3376
  http2?: boolean | undefined;
3186
3377
  server?: string | ServerConfiguration | undefined;
3187
3378
  webSocketServer?: string | boolean | WebSocketServerConfiguration | undefined;
3188
- proxy?: ProxyConfigMap | ProxyConfigArray | ProxyArray | undefined;
3379
+ proxy?: ProxyConfigArrayItem | ProxyConfigMap | ProxyConfigArray | undefined;
3189
3380
  open?: string | boolean | Open | (string | Open)[] | undefined;
3190
3381
  client?: boolean | ClientConfiguration | undefined;
3191
3382
  headers?:
@@ -3238,6 +3429,7 @@ type Response = import("express").Response;
3238
3429
  type NextFunction = import("express").NextFunction;
3239
3430
  type ExpressRequestHandler = import("express").RequestHandler;
3240
3431
  type ExpressErrorRequestHandler = import("express").ErrorRequestHandler;
3432
+ type AnymatchMatcher = import("anymatch").Matcher;
3241
3433
  type WatchOptions = import("chokidar").WatchOptions;
3242
3434
  type ConnectHistoryApiFallbackOptions =
3243
3435
  import("connect-history-api-fallback").Options;
@@ -3270,7 +3462,7 @@ type WatchFiles = {
3270
3462
  options?:
3271
3463
  | (import("chokidar").WatchOptions & {
3272
3464
  aggregateTimeout?: number | undefined;
3273
- ignored?: string | RegExp | string[] | undefined;
3465
+ ignored?: string[] | import("anymatch").Matcher | undefined;
3274
3466
  poll?: number | boolean | undefined;
3275
3467
  })
3276
3468
  | undefined;
@@ -3286,7 +3478,7 @@ type Static = {
3286
3478
  | boolean
3287
3479
  | (import("chokidar").WatchOptions & {
3288
3480
  aggregateTimeout?: number | undefined;
3289
- ignored?: string | RegExp | string[] | undefined;
3481
+ ignored?: string[] | import("anymatch").Matcher | undefined;
3290
3482
  poll?: number | boolean | undefined;
3291
3483
  })
3292
3484
  | undefined;
@@ -3311,20 +3503,28 @@ type WebSocketServer =
3311
3503
  | (import("sockjs").Server & {
3312
3504
  close: import("ws").WebSocketServer["close"];
3313
3505
  });
3314
- type ProxyConfigMap = {
3315
- [url: string]: string | import("http-proxy-middleware").Options;
3316
- };
3317
- type ProxyArray = HttpProxyMiddlewareOptions[];
3318
3506
  type ByPass = (
3319
3507
  req: Request,
3320
3508
  res: Response,
3321
- proxyConfig: ProxyConfigArray
3509
+ proxyConfig: ProxyConfigArrayItem
3322
3510
  ) => any;
3323
- type ProxyConfigArray = {
3324
- path?: string | string[] | undefined;
3325
- context?: string | string[] | HttpProxyMiddlewareOptionsFilter | undefined;
3326
- } & HttpProxyMiddlewareOptions &
3327
- ByPass;
3511
+ type ProxyConfigArrayItem = {
3512
+ path?: HttpProxyMiddlewareOptionsFilter | undefined;
3513
+ context?: HttpProxyMiddlewareOptionsFilter | undefined;
3514
+ } & {
3515
+ bypass?: ByPass;
3516
+ } & HttpProxyMiddlewareOptions;
3517
+ type ProxyConfigArray = (
3518
+ | ProxyConfigArrayItem
3519
+ | ((
3520
+ req?: Request | undefined,
3521
+ res?: Response | undefined,
3522
+ next?: NextFunction | undefined
3523
+ ) => ProxyConfigArrayItem)
3524
+ )[];
3525
+ type ProxyConfigMap = {
3526
+ [url: string]: string | ProxyConfigArrayItem;
3527
+ };
3328
3528
  type OpenApp = {
3329
3529
  name?: string | undefined;
3330
3530
  arguments?: string[] | undefined;