webpack-dev-server 4.11.1 → 4.13.0

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.
@@ -138,7 +138,7 @@ declare class Server {
138
138
  /**
139
139
  * @typedef {Object} ClientConfiguration
140
140
  * @property {"log" | "info" | "warn" | "error" | "none" | "verbose"} [logging]
141
- * @property {boolean | { warnings?: boolean, errors?: boolean }} [overlay]
141
+ * @property {boolean | { warnings?: boolean, errors?: boolean, runtimeErrors?: boolean }} [overlay]
142
142
  * @property {boolean} [progress]
143
143
  * @property {boolean | number} [reconnect]
144
144
  * @property {"ws" | "sockjs" | string} [webSocketTransport]
@@ -316,7 +316,7 @@ declare class Server {
316
316
  /**
317
317
  * @typedef {Object} ClientConfiguration
318
318
  * @property {"log" | "info" | "warn" | "error" | "none" | "verbose"} [logging]
319
- * @property {boolean | { warnings?: boolean, errors?: boolean }} [overlay]
319
+ * @property {boolean | { warnings?: boolean, errors?: boolean, runtimeErrors?: boolean }} [overlay]
320
320
  * @property {boolean} [progress]
321
321
  * @property {boolean | number} [reconnect]
322
322
  * @property {"ws" | "sockjs" | string} [webSocketTransport]
@@ -416,6 +416,82 @@ declare class Server {
416
416
  simpleType: string;
417
417
  multiple: boolean;
418
418
  };
419
+ "client-overlay-runtime-errors": {
420
+ configs: {
421
+ type: string;
422
+ multiple: boolean;
423
+ description: string;
424
+ /**
425
+ * @typedef {Object} Open
426
+ * @property {string | string[] | OpenApp} [app]
427
+ * @property {string | string[]} [target]
428
+ */
429
+ /**
430
+ * @typedef {Object} NormalizedOpen
431
+ * @property {string} target
432
+ * @property {import("open").Options} options
433
+ */
434
+ /**
435
+ * @typedef {Object} WebSocketURL
436
+ * @property {string} [hostname]
437
+ * @property {string} [password]
438
+ * @property {string} [pathname]
439
+ * @property {number | string} [port]
440
+ * @property {string} [protocol]
441
+ * @property {string} [username]
442
+ */
443
+ /**
444
+ * @typedef {Object} ClientConfiguration
445
+ * @property {"log" | "info" | "warn" | "error" | "none" | "verbose"} [logging]
446
+ * @property {boolean | { warnings?: boolean, errors?: boolean, runtimeErrors?: boolean }} [overlay]
447
+ * @property {boolean} [progress]
448
+ * @property {boolean | number} [reconnect]
449
+ * @property {"ws" | "sockjs" | string} [webSocketTransport]
450
+ * @property {string | WebSocketURL} [webSocketURL]
451
+ */
452
+ /**
453
+ * @typedef {Array<{ key: string; value: string }> | Record<string, string | string[]>} Headers
454
+ */
455
+ /**
456
+ * @typedef {{ name?: string, path?: string, middleware: ExpressRequestHandler | ExpressErrorRequestHandler } | ExpressRequestHandler | ExpressErrorRequestHandler} Middleware
457
+ */
458
+ /**
459
+ * @typedef {Object} Configuration
460
+ * @property {boolean | string} [ipc]
461
+ * @property {Host} [host]
462
+ * @property {Port} [port]
463
+ * @property {boolean | "only"} [hot]
464
+ * @property {boolean} [liveReload]
465
+ * @property {DevMiddlewareOptions<Request, Response>} [devMiddleware]
466
+ * @property {boolean} [compress]
467
+ * @property {boolean} [magicHtml]
468
+ * @property {"auto" | "all" | string | string[]} [allowedHosts]
469
+ * @property {boolean | ConnectHistoryApiFallbackOptions} [historyApiFallback]
470
+ * @property {boolean} [setupExitSignals]
471
+ * @property {boolean | Record<string, never> | BonjourOptions} [bonjour]
472
+ * @property {string | string[] | WatchFiles | Array<string | WatchFiles>} [watchFiles]
473
+ * @property {boolean | string | Static | Array<string | Static>} [static]
474
+ * @property {boolean | ServerOptions} [https]
475
+ * @property {boolean} [http2]
476
+ * @property {"http" | "https" | "spdy" | string | ServerConfiguration} [server]
477
+ * @property {boolean | "sockjs" | "ws" | string | WebSocketServerConfiguration} [webSocketServer]
478
+ * @property {ProxyConfigMap | ProxyConfigArrayItem | ProxyConfigArray} [proxy]
479
+ * @property {boolean | string | Open | Array<string | Open>} [open]
480
+ * @property {boolean} [setupExitSignals]
481
+ * @property {boolean | ClientConfiguration} [client]
482
+ * @property {Headers | ((req: Request, res: Response, context: DevMiddlewareContext<Request, Response>) => Headers)} [headers]
483
+ * @property {(devServer: Server) => void} [onAfterSetupMiddleware]
484
+ * @property {(devServer: Server) => void} [onBeforeSetupMiddleware]
485
+ * @property {(devServer: Server) => void} [onListening]
486
+ * @property {(middlewares: Middleware[], devServer: Server) => Middleware[]} [setupMiddlewares]
487
+ */
488
+ negatedDescription: string;
489
+ path: string;
490
+ }[];
491
+ description: string;
492
+ simpleType: string;
493
+ multiple: boolean;
494
+ };
419
495
  "client-progress": {
420
496
  configs: {
421
497
  type: string;
@@ -428,60 +504,6 @@ declare class Server {
428
504
  simpleType: string;
429
505
  multiple: boolean;
430
506
  };
431
- /**
432
- * @typedef {Object} WebSocketURL
433
- * @property {string} [hostname]
434
- * @property {string} [password]
435
- * @property {string} [pathname]
436
- * @property {number | string} [port]
437
- * @property {string} [protocol]
438
- * @property {string} [username]
439
- */
440
- /**
441
- * @typedef {Object} ClientConfiguration
442
- * @property {"log" | "info" | "warn" | "error" | "none" | "verbose"} [logging]
443
- * @property {boolean | { warnings?: boolean, errors?: boolean }} [overlay]
444
- * @property {boolean} [progress]
445
- * @property {boolean | number} [reconnect]
446
- * @property {"ws" | "sockjs" | string} [webSocketTransport]
447
- * @property {string | WebSocketURL} [webSocketURL]
448
- */
449
- /**
450
- * @typedef {Array<{ key: string; value: string }> | Record<string, string | string[]>} Headers
451
- */
452
- /**
453
- * @typedef {{ name?: string, path?: string, middleware: ExpressRequestHandler | ExpressErrorRequestHandler } | ExpressRequestHandler | ExpressErrorRequestHandler} Middleware
454
- */
455
- /**
456
- * @typedef {Object} Configuration
457
- * @property {boolean | string} [ipc]
458
- * @property {Host} [host]
459
- * @property {Port} [port]
460
- * @property {boolean | "only"} [hot]
461
- * @property {boolean} [liveReload]
462
- * @property {DevMiddlewareOptions<Request, Response>} [devMiddleware]
463
- * @property {boolean} [compress]
464
- * @property {boolean} [magicHtml]
465
- * @property {"auto" | "all" | string | string[]} [allowedHosts]
466
- * @property {boolean | ConnectHistoryApiFallbackOptions} [historyApiFallback]
467
- * @property {boolean} [setupExitSignals]
468
- * @property {boolean | Record<string, never> | BonjourOptions} [bonjour]
469
- * @property {string | string[] | WatchFiles | Array<string | WatchFiles>} [watchFiles]
470
- * @property {boolean | string | Static | Array<string | Static>} [static]
471
- * @property {boolean | ServerOptions} [https]
472
- * @property {boolean} [http2]
473
- * @property {"http" | "https" | "spdy" | string | ServerConfiguration} [server]
474
- * @property {boolean | "sockjs" | "ws" | string | WebSocketServerConfiguration} [webSocketServer]
475
- * @property {ProxyConfigMap | ProxyConfigArrayItem | ProxyConfigArray} [proxy]
476
- * @property {boolean | string | Open | Array<string | Open>} [open]
477
- * @property {boolean} [setupExitSignals]
478
- * @property {boolean | ClientConfiguration} [client]
479
- * @property {Headers | ((req: Request, res: Response, context: DevMiddlewareContext<Request, Response>) => Headers)} [headers]
480
- * @property {(devServer: Server) => void} [onAfterSetupMiddleware]
481
- * @property {(devServer: Server) => void} [onBeforeSetupMiddleware]
482
- * @property {(devServer: Server) => void} [onListening]
483
- * @property {(middlewares: Middleware[], devServer: Server) => Middleware[]} [setupMiddlewares]
484
- */
485
507
  "client-reconnect": {
486
508
  configs: (
487
509
  | {
@@ -540,6 +562,10 @@ declare class Server {
540
562
  description: string;
541
563
  path: string;
542
564
  }[];
565
+ /**
566
+ * @param {Configuration | Compiler | MultiCompiler} options
567
+ * @param {Compiler | MultiCompiler | Configuration} compiler
568
+ */
543
569
  description: string;
544
570
  simpleType: string;
545
571
  multiple: boolean;
@@ -565,18 +591,22 @@ declare class Server {
565
591
  description: string;
566
592
  simpleType: string;
567
593
  multiple: boolean;
594
+ /**
595
+ * @type {FSWatcher[]}
596
+ */
568
597
  };
569
598
  "client-web-socket-url-port": {
570
599
  configs: {
571
600
  type: string;
572
601
  multiple: boolean;
573
602
  description: string;
603
+ /**
604
+ * @private
605
+ * @type {RequestHandler[]}
606
+ */
574
607
  path: string;
575
608
  }[];
576
609
  description: string;
577
- /**
578
- * @type {FSWatcher[]}
579
- */
580
610
  simpleType: string;
581
611
  multiple: boolean;
582
612
  };
@@ -611,10 +641,6 @@ declare class Server {
611
641
  simpleType: string;
612
642
  multiple: boolean;
613
643
  };
614
- /**
615
- * @param {string} URL
616
- * @returns {boolean}
617
- */
618
644
  compress: {
619
645
  configs: {
620
646
  type: string;
@@ -625,10 +651,6 @@ declare class Server {
625
651
  }[];
626
652
  description: string;
627
653
  simpleType: string;
628
- /**
629
- * @param {string} gateway
630
- * @returns {string | undefined}
631
- */
632
654
  multiple: boolean;
633
655
  };
634
656
  "history-api-fallback": {
@@ -661,10 +683,6 @@ declare class Server {
661
683
  )[];
662
684
  description: string;
663
685
  simpleType: string;
664
- /**
665
- * @param {Host} hostname
666
- * @returns {Promise<string>}
667
- */
668
686
  multiple: boolean;
669
687
  };
670
688
  hot: {
@@ -726,9 +744,6 @@ declare class Server {
726
744
  "https-ca-reset": {
727
745
  configs: {
728
746
  description: string;
729
- /**
730
- * @type {string[]}
731
- */
732
747
  multiple: boolean;
733
748
  path: string;
734
749
  type: string;
@@ -757,6 +772,7 @@ declare class Server {
757
772
  }[];
758
773
  description: string;
759
774
  multiple: boolean;
775
+ /** @type {ServerConfiguration} */
760
776
  simpleType: string;
761
777
  };
762
778
  "https-cert": {
@@ -767,7 +783,7 @@ declare class Server {
767
783
  path: string;
768
784
  }[];
769
785
  description: string;
770
- simpleType: string;
786
+ /** @type {string} */ simpleType: string;
771
787
  multiple: boolean;
772
788
  };
773
789
  "https-cert-reset": {
@@ -865,12 +881,6 @@ declare class Server {
865
881
  description: string;
866
882
  negatedDescription: string;
867
883
  path: string;
868
- /**
869
- * prependEntry Method for webpack 4
870
- * @param {any} originalEntry
871
- * @param {any} newAdditionalEntries
872
- * @returns {any}
873
- */
874
884
  }[];
875
885
  description: string;
876
886
  simpleType: string;
@@ -896,6 +906,7 @@ declare class Server {
896
906
  simpleType: string;
897
907
  multiple: boolean;
898
908
  };
909
+ /** @type {Object<string,string>} */
899
910
  "live-reload": {
900
911
  configs: {
901
912
  type: string;
@@ -925,7 +936,7 @@ declare class Server {
925
936
  | {
926
937
  type: string;
927
938
  multiple: boolean;
928
- /** @type {MultiCompiler} */ description: string;
939
+ description: string;
929
940
  path: string;
930
941
  }
931
942
  | {
@@ -957,14 +968,14 @@ declare class Server {
957
968
  multiple: boolean;
958
969
  description: string;
959
970
  path: string;
971
+ /**
972
+ * @private
973
+ * @returns {Promise<void>}
974
+ */
960
975
  }[];
961
976
  description: string;
962
977
  simpleType: string;
963
978
  multiple: boolean;
964
- /**
965
- * @param {WatchOptions & { aggregateTimeout?: number, ignored?: WatchOptions["ignored"], poll?: number | boolean }} watchOptions
966
- * @returns {WatchOptions}
967
- */
968
979
  };
969
980
  "open-app-name-reset": {
970
981
  configs: {
@@ -1195,7 +1206,7 @@ declare class Server {
1195
1206
  }[];
1196
1207
  description: string;
1197
1208
  multiple: boolean;
1198
- simpleType: string /** @type {ServerOptions} */;
1209
+ simpleType: string;
1199
1210
  };
1200
1211
  static: {
1201
1212
  configs: (
@@ -1208,7 +1219,7 @@ declare class Server {
1208
1219
  | {
1209
1220
  type: string;
1210
1221
  multiple: boolean;
1211
- /** @type {ServerOptions} */ description: string;
1222
+ description: string;
1212
1223
  negatedDescription: string;
1213
1224
  path: string;
1214
1225
  }
@@ -1220,15 +1231,15 @@ declare class Server {
1220
1231
  "static-directory": {
1221
1232
  configs: {
1222
1233
  type: string;
1223
- /** @type {any} */ multiple: boolean;
1234
+ multiple: boolean;
1224
1235
  description: string;
1225
1236
  path: string;
1226
1237
  }[];
1238
+ description: string;
1227
1239
  /**
1228
1240
  * @param {string | Buffer | undefined} item
1229
1241
  * @returns {string | Buffer | undefined}
1230
1242
  */
1231
- description: string;
1232
1243
  simpleType: string;
1233
1244
  multiple: boolean;
1234
1245
  };
@@ -1240,8 +1251,8 @@ declare class Server {
1240
1251
  path: string;
1241
1252
  }[];
1242
1253
  description: string;
1243
- /** @type {any} */ simpleType: string;
1244
- multiple: boolean;
1254
+ simpleType: string;
1255
+ multiple: boolean /** @type {any} */;
1245
1256
  };
1246
1257
  "static-public-path-reset": {
1247
1258
  configs: {
@@ -1352,12 +1363,12 @@ declare class Server {
1352
1363
  description: string;
1353
1364
  multiple: boolean;
1354
1365
  path: string;
1355
- type: string /** @type {ServerOptions & { cacert?: ServerOptions["ca"] }} */;
1366
+ type: string;
1356
1367
  }
1357
1368
  )[];
1358
1369
  description: string;
1359
1370
  simpleType: string;
1360
- multiple: boolean /** @type {ServerOptions} */;
1371
+ multiple: boolean;
1361
1372
  };
1362
1373
  };
1363
1374
  readonly processArguments: (
@@ -1553,7 +1564,7 @@ declare class Server {
1553
1564
  /**
1554
1565
  * @typedef {Object} ClientConfiguration
1555
1566
  * @property {"log" | "info" | "warn" | "error" | "none" | "verbose"} [logging]
1556
- * @property {boolean | { warnings?: boolean, errors?: boolean }} [overlay]
1567
+ * @property {boolean | { warnings?: boolean, errors?: boolean, runtimeErrors?: boolean }} [overlay]
1557
1568
  * @property {boolean} [progress]
1558
1569
  * @property {boolean | number} [reconnect]
1559
1570
  * @property {"ws" | "sockjs" | string} [webSocketTransport]
@@ -1651,6 +1662,13 @@ declare class Server {
1651
1662
  negatedDescription: string;
1652
1663
  };
1653
1664
  };
1665
+ runtimeErrors: {
1666
+ description: string;
1667
+ type: string;
1668
+ cli: {
1669
+ negatedDescription: string;
1670
+ };
1671
+ };
1654
1672
  trustedTypesPolicyName: {
1655
1673
  description: string;
1656
1674
  type: string;
@@ -1675,15 +1693,7 @@ declare class Server {
1675
1693
  link: string;
1676
1694
  anyOf: (
1677
1695
  | {
1678
- /**
1679
- * @typedef {{ path?: HttpProxyMiddlewareOptionsFilter | undefined, context?: HttpProxyMiddlewareOptionsFilter | undefined } & { bypass?: ByPass } & HttpProxyMiddlewareOptions } ProxyConfigArrayItem
1680
- */
1681
- /**
1682
- * @typedef {(ProxyConfigArrayItem | ((req?: Request | undefined, res?: Response | undefined, next?: NextFunction | undefined) => ProxyConfigArrayItem))[]} ProxyConfigArray
1683
- */
1684
- /**
1685
- * @typedef {{ [url: string]: string | ProxyConfigArrayItem }} ProxyConfigMap
1686
- */
1696
+ type: string;
1687
1697
  /**
1688
1698
  * @typedef {Object} OpenApp
1689
1699
  * @property {string} [name]
@@ -1711,7 +1721,7 @@ declare class Server {
1711
1721
  /**
1712
1722
  * @typedef {Object} ClientConfiguration
1713
1723
  * @property {"log" | "info" | "warn" | "error" | "none" | "verbose"} [logging]
1714
- * @property {boolean | { warnings?: boolean, errors?: boolean }} [overlay]
1724
+ * @property {boolean | { warnings?: boolean, errors?: boolean, runtimeErrors?: boolean }} [overlay]
1715
1725
  * @property {boolean} [progress]
1716
1726
  * @property {boolean | number} [reconnect]
1717
1727
  * @property {"ws" | "sockjs" | string} [webSocketTransport]
@@ -1753,7 +1763,6 @@ declare class Server {
1753
1763
  * @property {(devServer: Server) => void} [onListening]
1754
1764
  * @property {(middlewares: Middleware[], devServer: Server) => Middleware[]} [setupMiddlewares]
1755
1765
  */
1756
- type: string;
1757
1766
  cli: {
1758
1767
  negatedDescription: string;
1759
1768
  };
@@ -1770,75 +1779,6 @@ declare class Server {
1770
1779
  anyOf: {
1771
1780
  $ref: string;
1772
1781
  }[];
1773
- /**
1774
- * @typedef {Object} OpenApp
1775
- * @property {string} [name]
1776
- * @property {string[]} [arguments]
1777
- */
1778
- /**
1779
- * @typedef {Object} Open
1780
- * @property {string | string[] | OpenApp} [app]
1781
- * @property {string | string[]} [target]
1782
- */
1783
- /**
1784
- * @typedef {Object} NormalizedOpen
1785
- * @property {string} target
1786
- * @property {import("open").Options} options
1787
- */
1788
- /**
1789
- * @typedef {Object} WebSocketURL
1790
- * @property {string} [hostname]
1791
- * @property {string} [password]
1792
- * @property {string} [pathname]
1793
- * @property {number | string} [port]
1794
- * @property {string} [protocol]
1795
- * @property {string} [username]
1796
- */
1797
- /**
1798
- * @typedef {Object} ClientConfiguration
1799
- * @property {"log" | "info" | "warn" | "error" | "none" | "verbose"} [logging]
1800
- * @property {boolean | { warnings?: boolean, errors?: boolean }} [overlay]
1801
- * @property {boolean} [progress]
1802
- * @property {boolean | number} [reconnect]
1803
- * @property {"ws" | "sockjs" | string} [webSocketTransport]
1804
- * @property {string | WebSocketURL} [webSocketURL]
1805
- */
1806
- /**
1807
- * @typedef {Array<{ key: string; value: string }> | Record<string, string | string[]>} Headers
1808
- */
1809
- /**
1810
- * @typedef {{ name?: string, path?: string, middleware: ExpressRequestHandler | ExpressErrorRequestHandler } | ExpressRequestHandler | ExpressErrorRequestHandler} Middleware
1811
- */
1812
- /**
1813
- * @typedef {Object} Configuration
1814
- * @property {boolean | string} [ipc]
1815
- * @property {Host} [host]
1816
- * @property {Port} [port]
1817
- * @property {boolean | "only"} [hot]
1818
- * @property {boolean} [liveReload]
1819
- * @property {DevMiddlewareOptions<Request, Response>} [devMiddleware]
1820
- * @property {boolean} [compress]
1821
- * @property {boolean} [magicHtml]
1822
- * @property {"auto" | "all" | string | string[]} [allowedHosts]
1823
- * @property {boolean | ConnectHistoryApiFallbackOptions} [historyApiFallback]
1824
- * @property {boolean} [setupExitSignals]
1825
- * @property {boolean | Record<string, never> | BonjourOptions} [bonjour]
1826
- * @property {string | string[] | WatchFiles | Array<string | WatchFiles>} [watchFiles]
1827
- * @property {boolean | string | Static | Array<string | Static>} [static]
1828
- * @property {boolean | ServerOptions} [https]
1829
- * @property {boolean} [http2]
1830
- * @property {"http" | "https" | "spdy" | string | ServerConfiguration} [server]
1831
- * @property {boolean | "sockjs" | "ws" | string | WebSocketServerConfiguration} [webSocketServer]
1832
- * @property {ProxyConfigMap | ProxyConfigArrayItem | ProxyConfigArray} [proxy]
1833
- * @property {boolean | string | Open | Array<string | Open>} [open]
1834
- * @property {boolean} [setupExitSignals]
1835
- * @property {boolean | ClientConfiguration} [client]
1836
- * @property {Headers | ((req: Request, res: Response, context: DevMiddlewareContext<Request, Response>) => Headers)} [headers]
1837
- * @property {(devServer: Server) => void} [onAfterSetupMiddleware]
1838
- * @property {(devServer: Server) => void} [onBeforeSetupMiddleware]
1839
- * @property {(devServer: Server) => void} [onListening]
1840
- * @property {(middlewares: Middleware[], devServer: Server) => Middleware[]} [setupMiddlewares]
1841
- */
1842
1782
  description: string;
1843
1783
  link: string;
1844
1784
  };
@@ -1848,15 +1788,6 @@ declare class Server {
1848
1788
  ClientWebSocketTransportString: {
1849
1789
  type: string;
1850
1790
  minLength: number;
1851
- /**
1852
- * @typedef {Object} WebSocketURL
1853
- * @property {string} [hostname]
1854
- * @property {string} [password]
1855
- * @property {string} [pathname]
1856
- * @property {number | string} [port]
1857
- * @property {string} [protocol]
1858
- * @property {string} [username]
1859
- */
1860
1791
  };
1861
1792
  ClientWebSocketURL: {
1862
1793
  description: string;
@@ -1870,6 +1801,36 @@ declare class Server {
1870
1801
  }
1871
1802
  | {
1872
1803
  type: string;
1804
+ /**
1805
+ * @typedef {Object} Configuration
1806
+ * @property {boolean | string} [ipc]
1807
+ * @property {Host} [host]
1808
+ * @property {Port} [port]
1809
+ * @property {boolean | "only"} [hot]
1810
+ * @property {boolean} [liveReload]
1811
+ * @property {DevMiddlewareOptions<Request, Response>} [devMiddleware]
1812
+ * @property {boolean} [compress]
1813
+ * @property {boolean} [magicHtml]
1814
+ * @property {"auto" | "all" | string | string[]} [allowedHosts]
1815
+ * @property {boolean | ConnectHistoryApiFallbackOptions} [historyApiFallback]
1816
+ * @property {boolean} [setupExitSignals]
1817
+ * @property {boolean | Record<string, never> | BonjourOptions} [bonjour]
1818
+ * @property {string | string[] | WatchFiles | Array<string | WatchFiles>} [watchFiles]
1819
+ * @property {boolean | string | Static | Array<string | Static>} [static]
1820
+ * @property {boolean | ServerOptions} [https]
1821
+ * @property {boolean} [http2]
1822
+ * @property {"http" | "https" | "spdy" | string | ServerConfiguration} [server]
1823
+ * @property {boolean | "sockjs" | "ws" | string | WebSocketServerConfiguration} [webSocketServer]
1824
+ * @property {ProxyConfigMap | ProxyConfigArrayItem | ProxyConfigArray} [proxy]
1825
+ * @property {boolean | string | Open | Array<string | Open>} [open]
1826
+ * @property {boolean} [setupExitSignals]
1827
+ * @property {boolean | ClientConfiguration} [client]
1828
+ * @property {Headers | ((req: Request, res: Response, context: DevMiddlewareContext<Request, Response>) => Headers)} [headers]
1829
+ * @property {(devServer: Server) => void} [onAfterSetupMiddleware]
1830
+ * @property {(devServer: Server) => void} [onBeforeSetupMiddleware]
1831
+ * @property {(devServer: Server) => void} [onListening]
1832
+ * @property {(middlewares: Middleware[], devServer: Server) => Middleware[]} [setupMiddlewares]
1833
+ */
1873
1834
  additionalProperties: boolean;
1874
1835
  properties: {
1875
1836
  hostname: {
@@ -1968,6 +1929,10 @@ declare class Server {
1968
1929
  cli: {
1969
1930
  negatedDescription: string;
1970
1931
  };
1932
+ /**
1933
+ * @private
1934
+ * @type {RequestHandler[]}
1935
+ */
1971
1936
  };
1972
1937
  ca: {
1973
1938
  anyOf: (
@@ -2063,10 +2028,6 @@ declare class Server {
2063
2028
  description: string;
2064
2029
  };
2065
2030
  crl: {
2066
- /**
2067
- * @param {"v4" | "v6"} family
2068
- * @returns {Promise<string | undefined>}
2069
- */
2070
2031
  anyOf: (
2071
2032
  | {
2072
2033
  type: string;
@@ -2221,7 +2182,7 @@ declare class Server {
2221
2182
  }
2222
2183
  )[];
2223
2184
  description: string;
2224
- link: string /** @type {WebSocketURL} */;
2185
+ link: string;
2225
2186
  };
2226
2187
  HistoryApiFallback: {
2227
2188
  anyOf: (
@@ -2235,9 +2196,8 @@ declare class Server {
2235
2196
  }
2236
2197
  | {
2237
2198
  type: string;
2238
- description: string;
2199
+ /** @type {WebSocketURL} */ description: string;
2239
2200
  link: string;
2240
- /** @type {string} */
2241
2201
  cli?: undefined /** @typedef {import("express").Request} Request */;
2242
2202
  }
2243
2203
  )[];
@@ -2250,7 +2210,7 @@ declare class Server {
2250
2210
  anyOf: (
2251
2211
  | {
2252
2212
  enum: string[];
2253
- type?: undefined;
2213
+ /** @type {ServerConfiguration} */ type?: undefined;
2254
2214
  minLength?: undefined;
2255
2215
  }
2256
2216
  | {
@@ -2421,6 +2381,12 @@ declare class Server {
2421
2381
  };
2422
2382
  };
2423
2383
  };
2384
+ /**
2385
+ * prependEntry Method for webpack 4
2386
+ * @param {any} originalEntry
2387
+ * @param {any} newAdditionalEntries
2388
+ * @returns {any}
2389
+ */
2424
2390
  OpenString: {
2425
2391
  type: string;
2426
2392
  minLength: number;
@@ -2475,6 +2441,7 @@ declare class Server {
2475
2441
  }
2476
2442
  )[];
2477
2443
  description: string;
2444
+ /** @type {any} */
2478
2445
  link: string;
2479
2446
  };
2480
2447
  Server: {
@@ -2922,10 +2889,10 @@ declare class Server {
2922
2889
  anyOf: (
2923
2890
  | {
2924
2891
  enum: boolean[];
2925
- /** @type {ServerOptions} */ cli: {
2892
+ cli: {
2926
2893
  negatedDescription: string;
2927
2894
  };
2928
- /** @type {ServerOptions} */ $ref?: undefined;
2895
+ $ref?: undefined;
2929
2896
  }
2930
2897
  | {
2931
2898
  $ref: string;
@@ -2938,7 +2905,7 @@ declare class Server {
2938
2905
  };
2939
2906
  };
2940
2907
  WebSocketServerFunction: {
2941
- instanceof: string;
2908
+ instanceof: string /** @type {ServerOptions} */;
2942
2909
  };
2943
2910
  WebSocketServerObject: {
2944
2911
  type: string;
@@ -3007,6 +2974,7 @@ declare class Server {
3007
2974
  magicHtml: {
3008
2975
  $ref: string;
3009
2976
  };
2977
+ /** @type {any} */
3010
2978
  onAfterSetupMiddleware: {
3011
2979
  $ref: string;
3012
2980
  };
@@ -3080,6 +3048,12 @@ declare class Server {
3080
3048
  * @returns {string}
3081
3049
  */
3082
3050
  static findCacheDir(): string;
3051
+ /**
3052
+ * @private
3053
+ * @param {Compiler} compiler
3054
+ * @returns bool
3055
+ */
3056
+ private static isWebTarget;
3083
3057
  /**
3084
3058
  * @param {Configuration | Compiler | MultiCompiler} options
3085
3059
  * @param {Compiler | MultiCompiler | Configuration} compiler
@@ -3543,7 +3517,9 @@ type Static = {
3543
3517
  publicPath?: string | string[] | undefined;
3544
3518
  serveIndex?: boolean | import("serve-index").Options | undefined;
3545
3519
  staticOptions?:
3546
- | import("serve-static").ServeStaticOptions<import("http").ServerResponse>
3520
+ | import("serve-static").ServeStaticOptions<
3521
+ import("http").ServerResponse<import("http").IncomingMessage>
3522
+ >
3547
3523
  | undefined;
3548
3524
  watch?:
3549
3525
  | boolean
@@ -3623,6 +3599,7 @@ type ClientConfiguration = {
3623
3599
  | {
3624
3600
  warnings?: boolean | undefined;
3625
3601
  errors?: boolean | undefined;
3602
+ runtimeErrors?: boolean | undefined;
3626
3603
  }
3627
3604
  | undefined;
3628
3605
  progress?: boolean | undefined;