webpack-dev-server 4.7.4 → 4.9.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.
@@ -26,12 +26,11 @@ 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 */
30
29
  /** @typedef {import("chokidar").WatchOptions} WatchOptions */
31
30
  /** @typedef {import("chokidar").FSWatcher} FSWatcher */
32
31
  /** @typedef {import("connect-history-api-fallback").Options} ConnectHistoryApiFallbackOptions */
33
- /** @typedef {import("bonjour").Bonjour} Bonjour */
34
- /** @typedef {import("bonjour").BonjourOptions} BonjourOptions */
32
+ /** @typedef {import("bonjour-service").Bonjour} Bonjour */
33
+ /** @typedef {import("bonjour-service").Service} BonjourOptions */
35
34
  /** @typedef {import("http-proxy-middleware").RequestHandler} RequestHandler */
36
35
  /** @typedef {import("http-proxy-middleware").Options} HttpProxyMiddlewareOptions */
37
36
  /** @typedef {import("http-proxy-middleware").Filter} HttpProxyMiddlewareOptionsFilter */
@@ -60,7 +59,7 @@ declare class Server {
60
59
  /**
61
60
  * @typedef {Object} WatchFiles
62
61
  * @property {string | string[]} paths
63
- * @property {WatchOptions & { aggregateTimeout?: number, ignored?: AnymatchMatcher | string[], poll?: number | boolean }} [options]
62
+ * @property {WatchOptions & { aggregateTimeout?: number, ignored?: WatchOptions["ignored"], poll?: number | boolean }} [options]
64
63
  */
65
64
  /**
66
65
  * @typedef {Object} Static
@@ -68,7 +67,7 @@ declare class Server {
68
67
  * @property {string | string[]} [publicPath]
69
68
  * @property {boolean | ServeIndexOptions} [serveIndex]
70
69
  * @property {ServeStaticOptions} [staticOptions]
71
- * @property {boolean | WatchOptions & { aggregateTimeout?: number, ignored?: AnymatchMatcher | string[], poll?: number | boolean }} [watch]
70
+ * @property {boolean | WatchOptions & { aggregateTimeout?: number, ignored?: WatchOptions["ignored"], poll?: number | boolean }} [watch]
72
71
  */
73
72
  /**
74
73
  * @typedef {Object} NormalizedStatic
@@ -164,7 +163,7 @@ declare class Server {
164
163
  * @property {"auto" | "all" | string | string[]} [allowedHosts]
165
164
  * @property {boolean | ConnectHistoryApiFallbackOptions} [historyApiFallback]
166
165
  * @property {boolean} [setupExitSignals]
167
- * @property {boolean | BonjourOptions} [bonjour]
166
+ * @property {boolean | Record<string, never> | BonjourOptions} [bonjour]
168
167
  * @property {string | string[] | WatchFiles | Array<string | WatchFiles>} [watchFiles]
169
168
  * @property {boolean | string | Static | Array<string | Static>} [static]
170
169
  * @property {boolean | ServerOptions} [https]
@@ -210,13 +209,17 @@ declare class Server {
210
209
  client: {
211
210
  configs: {
212
211
  description: string;
212
+ negatedDescription: string;
213
213
  multiple: boolean;
214
- path: string /** @typedef {import("http").IncomingMessage} IncomingMessage */;
214
+ path: string;
215
215
  type: string;
216
216
  values: boolean[];
217
217
  }[];
218
- /** @typedef {import("open").Options} OpenOptions */
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
+ description: string;
219
+ multiple: boolean;
220
+ simpleType: string;
221
+ };
222
+ "client-logging": {
220
223
  /**
221
224
  * @template Request, Response
222
225
  * @typedef {import("webpack-dev-middleware").Options<Request, Response>} DevMiddlewareOptions
@@ -234,7 +237,7 @@ declare class Server {
234
237
  /**
235
238
  * @typedef {Object} WatchFiles
236
239
  * @property {string | string[]} paths
237
- * @property {WatchOptions & { aggregateTimeout?: number, ignored?: AnymatchMatcher | string[], poll?: number | boolean }} [options]
240
+ * @property {WatchOptions & { aggregateTimeout?: number, ignored?: WatchOptions["ignored"], poll?: number | boolean }} [options]
238
241
  */
239
242
  /**
240
243
  * @typedef {Object} Static
@@ -242,7 +245,7 @@ declare class Server {
242
245
  * @property {string | string[]} [publicPath]
243
246
  * @property {boolean | ServeIndexOptions} [serveIndex]
244
247
  * @property {ServeStaticOptions} [staticOptions]
245
- * @property {boolean | WatchOptions & { aggregateTimeout?: number, ignored?: AnymatchMatcher | string[], poll?: number | boolean }} [watch]
248
+ * @property {boolean | WatchOptions & { aggregateTimeout?: number, ignored?: WatchOptions["ignored"], poll?: number | boolean }} [watch]
246
249
  */
247
250
  /**
248
251
  * @typedef {Object} NormalizedStatic
@@ -338,7 +341,7 @@ declare class Server {
338
341
  * @property {"auto" | "all" | string | string[]} [allowedHosts]
339
342
  * @property {boolean | ConnectHistoryApiFallbackOptions} [historyApiFallback]
340
343
  * @property {boolean} [setupExitSignals]
341
- * @property {boolean | BonjourOptions} [bonjour]
344
+ * @property {boolean | Record<string, never> | BonjourOptions} [bonjour]
342
345
  * @property {string | string[] | WatchFiles | Array<string | WatchFiles>} [watchFiles]
343
346
  * @property {boolean | string | Static | Array<string | Static>} [static]
344
347
  * @property {boolean | ServerOptions} [https]
@@ -355,11 +358,6 @@ declare class Server {
355
358
  * @property {(devServer: Server) => void} [onListening]
356
359
  * @property {(middlewares: Middleware[], devServer: Server) => Middleware[]} [setupMiddlewares]
357
360
  */
358
- description: string;
359
- multiple: boolean;
360
- simpleType: string;
361
- };
362
- "client-logging": {
363
361
  configs: {
364
362
  type: string;
365
363
  values: string[];
@@ -388,24 +386,25 @@ declare class Server {
388
386
  type: string;
389
387
  multiple: boolean;
390
388
  description: string;
389
+ negatedDescription: string;
391
390
  path: string;
392
391
  }[];
393
392
  description: string;
394
393
  simpleType: string;
395
394
  multiple: boolean;
396
395
  };
397
- "client-overlay-warnings": {
396
+ "client-overlay-trusted-types-policy-name": {
398
397
  configs: {
399
- type: string;
400
- multiple: boolean;
401
398
  description: string;
399
+ multiple: boolean;
402
400
  path: string;
401
+ type: string;
403
402
  }[];
404
403
  description: string;
405
- simpleType: string;
406
404
  multiple: boolean;
405
+ simpleType: string;
407
406
  };
408
- "client-progress": {
407
+ "client-overlay-warnings": {
409
408
  configs: {
410
409
  type: string;
411
410
  multiple: boolean;
@@ -417,85 +416,7 @@ declare class Server {
417
416
  simpleType: string;
418
417
  multiple: boolean;
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
+ "client-progress": {
499
420
  configs: {
500
421
  type: string;
501
422
  multiple: boolean;
@@ -507,6 +428,80 @@ declare class Server {
507
428
  simpleType: string;
508
429
  multiple: boolean;
509
430
  };
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
+ "client-reconnect": {
486
+ configs: (
487
+ | {
488
+ type: string;
489
+ multiple: boolean;
490
+ description: string;
491
+ negatedDescription: string;
492
+ path: string;
493
+ }
494
+ | {
495
+ type: string;
496
+ multiple: boolean;
497
+ description: string;
498
+ path: string;
499
+ }
500
+ )[];
501
+ description: string;
502
+ simpleType: string;
503
+ multiple: boolean;
504
+ };
510
505
  "client-web-socket-transport": {
511
506
  configs: (
512
507
  | {
@@ -579,6 +574,9 @@ declare class Server {
579
574
  path: string;
580
575
  }[];
581
576
  description: string;
577
+ /**
578
+ * @type {FSWatcher[]}
579
+ */
582
580
  simpleType: string;
583
581
  multiple: boolean;
584
582
  };
@@ -613,6 +611,10 @@ declare class Server {
613
611
  simpleType: string;
614
612
  multiple: boolean;
615
613
  };
614
+ /**
615
+ * @param {string} URL
616
+ * @returns {boolean}
617
+ */
616
618
  compress: {
617
619
  configs: {
618
620
  type: string;
@@ -623,6 +625,10 @@ declare class Server {
623
625
  }[];
624
626
  description: string;
625
627
  simpleType: string;
628
+ /**
629
+ * @param {string} gateway
630
+ * @returns {string | undefined}
631
+ */
626
632
  multiple: boolean;
627
633
  };
628
634
  "history-api-fallback": {
@@ -630,6 +636,7 @@ declare class Server {
630
636
  type: string;
631
637
  multiple: boolean;
632
638
  description: string;
639
+ negatedDescription: string;
633
640
  path: string;
634
641
  }[];
635
642
  description: string;
@@ -654,6 +661,10 @@ declare class Server {
654
661
  )[];
655
662
  description: string;
656
663
  simpleType: string;
664
+ /**
665
+ * @param {Host} hostname
666
+ * @returns {Promise<string>}
667
+ */
657
668
  multiple: boolean;
658
669
  };
659
670
  hot: {
@@ -670,16 +681,11 @@ declare class Server {
670
681
  values: string[];
671
682
  multiple: boolean;
672
683
  description: string;
673
- negatedDescription: string;
674
684
  path: string;
675
685
  }
676
686
  )[];
677
687
  description: string;
678
688
  simpleType: string;
679
- /**
680
- * @param {"v4" | "v6"} family
681
- * @returns {string | undefined}
682
- */
683
689
  multiple: boolean;
684
690
  };
685
691
  http2: {
@@ -720,6 +726,9 @@ declare class Server {
720
726
  "https-ca-reset": {
721
727
  configs: {
722
728
  description: string;
729
+ /**
730
+ * @type {string[]}
731
+ */
723
732
  multiple: boolean;
724
733
  path: string;
725
734
  type: string;
@@ -748,7 +757,7 @@ declare class Server {
748
757
  }[];
749
758
  description: string;
750
759
  multiple: boolean;
751
- simpleType: string /** @type {WebSocketURL} */;
760
+ simpleType: string;
752
761
  };
753
762
  "https-cert": {
754
763
  configs: {
@@ -854,7 +863,7 @@ declare class Server {
854
863
  type: string;
855
864
  multiple: boolean;
856
865
  description: string;
857
- negatedDescription: string;
866
+ /** @type {Object<string,string>} */ negatedDescription: string;
858
867
  path: string;
859
868
  }[];
860
869
  description: string;
@@ -866,12 +875,13 @@ declare class Server {
866
875
  | {
867
876
  type: string;
868
877
  multiple: boolean;
878
+ /** @type {any} */
869
879
  description: string;
870
880
  path: string;
871
881
  }
872
882
  | {
873
883
  type: string;
874
- values: boolean[];
884
+ /** @type {any} */ values: boolean[];
875
885
  multiple: boolean;
876
886
  description: string;
877
887
  path: string;
@@ -921,7 +931,7 @@ declare class Server {
921
931
  path: string;
922
932
  }
923
933
  )[];
924
- description: string;
934
+ /** @type {Compiler} */ description: string;
925
935
  simpleType: string;
926
936
  multiple: boolean;
927
937
  };
@@ -950,10 +960,6 @@ declare class Server {
950
960
  "open-app-name-reset": {
951
961
  configs: {
952
962
  type: string;
953
- /**
954
- * @param {WatchOptions & { aggregateTimeout?: number, ignored?: AnymatchMatcher | string[], poll?: number | boolean }} watchOptions
955
- * @returns {WatchOptions}
956
- */
957
963
  multiple: boolean;
958
964
  description: string;
959
965
  path: string;
@@ -981,7 +987,7 @@ declare class Server {
981
987
  path: string;
982
988
  }[];
983
989
  description: string;
984
- simpleType: string;
990
+ /** @type {NormalizedStatic} */ simpleType: string;
985
991
  multiple: boolean;
986
992
  };
987
993
  "open-target-reset": {
@@ -991,10 +997,6 @@ declare class Server {
991
997
  description: string;
992
998
  path: string;
993
999
  }[];
994
- /**
995
- * @param {string | Static | undefined} [optionsForStatic]
996
- * @returns {NormalizedStatic}
997
- */
998
1000
  description: string;
999
1001
  simpleType: string;
1000
1002
  multiple: boolean;
@@ -1160,11 +1162,13 @@ declare class Server {
1160
1162
  }[];
1161
1163
  description: string;
1162
1164
  multiple: boolean;
1163
- simpleType: string;
1165
+ simpleType: string /** @type {ServerOptions} */;
1164
1166
  };
1167
+ /** @type {ServerOptions} */
1165
1168
  "server-options-request-cert": {
1166
1169
  configs: {
1167
1170
  description: string;
1171
+ negatedDescription: string;
1168
1172
  multiple: boolean;
1169
1173
  path: string;
1170
1174
  type: string;
@@ -1186,12 +1190,25 @@ declare class Server {
1186
1190
  simpleType: string;
1187
1191
  };
1188
1192
  static: {
1189
- configs: {
1190
- type: string;
1191
- multiple: boolean;
1192
- description: string;
1193
- path: string;
1194
- }[];
1193
+ configs: (
1194
+ | {
1195
+ type: string;
1196
+ multiple: boolean;
1197
+ description: string;
1198
+ path: string;
1199
+ }
1200
+ | {
1201
+ type: string;
1202
+ multiple: boolean;
1203
+ /**
1204
+ * @param {string | Buffer | undefined} item
1205
+ * @returns {string | Buffer | undefined}
1206
+ */
1207
+ description: string;
1208
+ negatedDescription: string;
1209
+ path: string;
1210
+ }
1211
+ )[];
1195
1212
  description: string;
1196
1213
  simpleType: string;
1197
1214
  multiple: boolean;
@@ -1203,7 +1220,7 @@ declare class Server {
1203
1220
  description: string;
1204
1221
  path: string;
1205
1222
  }[];
1206
- description: string;
1223
+ /** @type {any} */ description: string;
1207
1224
  simpleType: string;
1208
1225
  multiple: boolean;
1209
1226
  };
@@ -1290,6 +1307,7 @@ declare class Server {
1290
1307
  configs: (
1291
1308
  | {
1292
1309
  description: string;
1310
+ negatedDescription: string;
1293
1311
  multiple: boolean;
1294
1312
  path: string;
1295
1313
  type: string;
@@ -1309,7 +1327,9 @@ declare class Server {
1309
1327
  type: string;
1310
1328
  }
1311
1329
  )[];
1330
+ /** @type {ServerOptions & { cacert?: ServerOptions["ca"] }} */
1312
1331
  description: string;
1332
+ /** @type {ServerOptions} */
1313
1333
  simpleType: string;
1314
1334
  multiple: boolean;
1315
1335
  };
@@ -1317,7 +1337,7 @@ declare class Server {
1317
1337
  configs: (
1318
1338
  | {
1319
1339
  description: string;
1320
- /** @type {ServerOptions & { cacert?: ServerOptions["ca"] }} */ multiple: boolean;
1340
+ multiple: boolean;
1321
1341
  path: string;
1322
1342
  type: string;
1323
1343
  values: string[];
@@ -1331,7 +1351,6 @@ declare class Server {
1331
1351
  )[];
1332
1352
  description: string;
1333
1353
  simpleType: string;
1334
- /** @type {ServerOptions & { cacert?: ServerOptions["ca"] }} */
1335
1354
  multiple: boolean;
1336
1355
  };
1337
1356
  };
@@ -1389,6 +1408,9 @@ declare class Server {
1389
1408
  anyOf: (
1390
1409
  | {
1391
1410
  type: string;
1411
+ cli: {
1412
+ negatedDescription: string;
1413
+ } /** @typedef {import("express").Request} Request */;
1392
1414
  description?: undefined;
1393
1415
  link?: undefined;
1394
1416
  }
@@ -1396,13 +1418,11 @@ declare class Server {
1396
1418
  type: string;
1397
1419
  description: string;
1398
1420
  link: string;
1421
+ cli?: undefined /** @typedef {import("express").Request} Request */;
1399
1422
  }
1400
1423
  )[];
1401
1424
  description: string;
1402
1425
  link: string;
1403
- cli: {
1404
- negatedDescription: string;
1405
- };
1406
1426
  };
1407
1427
  Client: {
1408
1428
  description: string;
@@ -1410,6 +1430,9 @@ declare class Server {
1410
1430
  anyOf: (
1411
1431
  | {
1412
1432
  enum: boolean[];
1433
+ cli: {
1434
+ negatedDescription: string;
1435
+ };
1413
1436
  type?: undefined;
1414
1437
  additionalProperties?: undefined;
1415
1438
  properties?: undefined;
@@ -1421,18 +1444,9 @@ declare class Server {
1421
1444
  logging: {
1422
1445
  $ref: string;
1423
1446
  };
1424
- overlay: {
1425
- $ref: string;
1426
- };
1427
- progress: {
1428
- $ref: string;
1429
- };
1430
- reconnect: {
1431
- $ref: string;
1432
- };
1433
- webSocketTransport: {
1434
- $ref: string;
1435
- };
1447
+ /** @typedef {import("serve-static").ServeStaticOptions} ServeStaticOptions */
1448
+ /** @typedef {import("ipaddr.js").IPv4} IPv4 */
1449
+ /** @typedef {import("ipaddr.js").IPv6} IPv6 */
1436
1450
  /** @typedef {import("net").Socket} Socket */
1437
1451
  /** @typedef {import("http").IncomingMessage} IncomingMessage */
1438
1452
  /** @typedef {import("open").Options} OpenOptions */
@@ -1454,7 +1468,7 @@ declare class Server {
1454
1468
  /**
1455
1469
  * @typedef {Object} WatchFiles
1456
1470
  * @property {string | string[]} paths
1457
- * @property {WatchOptions & { aggregateTimeout?: number, ignored?: AnymatchMatcher | string[], poll?: number | boolean }} [options]
1471
+ * @property {WatchOptions & { aggregateTimeout?: number, ignored?: WatchOptions["ignored"], poll?: number | boolean }} [options]
1458
1472
  */
1459
1473
  /**
1460
1474
  * @typedef {Object} Static
@@ -1462,7 +1476,7 @@ declare class Server {
1462
1476
  * @property {string | string[]} [publicPath]
1463
1477
  * @property {boolean | ServeIndexOptions} [serveIndex]
1464
1478
  * @property {ServeStaticOptions} [staticOptions]
1465
- * @property {boolean | WatchOptions & { aggregateTimeout?: number, ignored?: AnymatchMatcher | string[], poll?: number | boolean }} [watch]
1479
+ * @property {boolean | WatchOptions & { aggregateTimeout?: number, ignored?: WatchOptions["ignored"], poll?: number | boolean }} [watch]
1466
1480
  */
1467
1481
  /**
1468
1482
  * @typedef {Object} NormalizedStatic
@@ -1558,7 +1572,7 @@ declare class Server {
1558
1572
  * @property {"auto" | "all" | string | string[]} [allowedHosts]
1559
1573
  * @property {boolean | ConnectHistoryApiFallbackOptions} [historyApiFallback]
1560
1574
  * @property {boolean} [setupExitSignals]
1561
- * @property {boolean | BonjourOptions} [bonjour]
1575
+ * @property {boolean | Record<string, never> | BonjourOptions} [bonjour]
1562
1576
  * @property {string | string[] | WatchFiles | Array<string | WatchFiles>} [watchFiles]
1563
1577
  * @property {boolean | string | Static | Array<string | Static>} [static]
1564
1578
  * @property {boolean | ServerOptions} [https]
@@ -1575,11 +1589,24 @@ declare class Server {
1575
1589
  * @property {(devServer: Server) => void} [onListening]
1576
1590
  * @property {(middlewares: Middleware[], devServer: Server) => Middleware[]} [setupMiddlewares]
1577
1591
  */
1592
+ overlay: {
1593
+ $ref: string;
1594
+ };
1595
+ progress: {
1596
+ $ref: string;
1597
+ };
1598
+ reconnect: {
1599
+ $ref: string;
1600
+ };
1601
+ webSocketTransport: {
1602
+ $ref: string;
1603
+ };
1578
1604
  webSocketURL: {
1579
1605
  $ref: string;
1580
1606
  };
1581
1607
  };
1582
1608
  enum?: undefined;
1609
+ cli?: undefined /** @typedef {import("express").Request} Request */;
1583
1610
  }
1584
1611
  )[];
1585
1612
  };
@@ -1592,62 +1619,56 @@ declare class Server {
1592
1619
  anyOf: (
1593
1620
  | {
1594
1621
  description: string;
1595
- /**
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
1644
- */
1645
- /**
1646
- * @callback ByPass
1647
- * @param {Request} req
1648
- * @param {Response} res
1649
- * @param {ProxyConfigArrayItem} proxyConfig
1650
- */
1622
+ link: string;
1623
+ type: string;
1624
+ cli: {
1625
+ negatedDescription: string;
1626
+ };
1627
+ additionalProperties?: undefined;
1628
+ properties?: undefined;
1629
+ }
1630
+ | {
1631
+ type: string;
1632
+ additionalProperties: boolean;
1633
+ properties: {
1634
+ errors: {
1635
+ description: string;
1636
+ type: string;
1637
+ cli: {
1638
+ negatedDescription: string;
1639
+ };
1640
+ };
1641
+ warnings: {
1642
+ description: string;
1643
+ type: string;
1644
+ cli: {
1645
+ negatedDescription: string;
1646
+ };
1647
+ };
1648
+ trustedTypesPolicyName: {
1649
+ description: string;
1650
+ type: string;
1651
+ };
1652
+ };
1653
+ description?: undefined;
1654
+ link?: undefined;
1655
+ cli?: undefined /** @typedef {import("express").Request} Request */;
1656
+ }
1657
+ )[];
1658
+ };
1659
+ ClientProgress: {
1660
+ description: string;
1661
+ link: string;
1662
+ type: string;
1663
+ cli: {
1664
+ negatedDescription: string;
1665
+ };
1666
+ };
1667
+ ClientReconnect: {
1668
+ description: string;
1669
+ link: string;
1670
+ anyOf: (
1671
+ | {
1651
1672
  /**
1652
1673
  * @typedef {{ path?: HttpProxyMiddlewareOptionsFilter | undefined, context?: HttpProxyMiddlewareOptionsFilter | undefined } & { bypass?: ByPass } & HttpProxyMiddlewareOptions } ProxyConfigArrayItem
1653
1674
  */
@@ -1709,7 +1730,7 @@ declare class Server {
1709
1730
  * @property {"auto" | "all" | string | string[]} [allowedHosts]
1710
1731
  * @property {boolean | ConnectHistoryApiFallbackOptions} [historyApiFallback]
1711
1732
  * @property {boolean} [setupExitSignals]
1712
- * @property {boolean | BonjourOptions} [bonjour]
1733
+ * @property {boolean | Record<string, never> | BonjourOptions} [bonjour]
1713
1734
  * @property {string | string[] | WatchFiles | Array<string | WatchFiles>} [watchFiles]
1714
1735
  * @property {boolean | string | Static | Array<string | Static>} [static]
1715
1736
  * @property {boolean | ServerOptions} [https]
@@ -1726,62 +1747,92 @@ declare class Server {
1726
1747
  * @property {(devServer: Server) => void} [onListening]
1727
1748
  * @property {(middlewares: Middleware[], devServer: Server) => Middleware[]} [setupMiddlewares]
1728
1749
  */
1729
- link: string;
1730
1750
  type: string;
1731
1751
  cli: {
1732
1752
  negatedDescription: string;
1733
1753
  };
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
1754
  minimum?: undefined;
1771
1755
  }
1772
1756
  | {
1773
1757
  type: string;
1774
1758
  minimum: number;
1759
+ cli?: undefined /** @typedef {import("express").Request} Request */;
1775
1760
  }
1776
1761
  )[];
1777
- cli: {
1778
- negatedDescription: string;
1779
- };
1780
1762
  };
1781
1763
  ClientWebSocketTransport: {
1782
1764
  anyOf: {
1783
1765
  $ref: string;
1784
1766
  }[];
1767
+ /**
1768
+ * @typedef {Object} OpenApp
1769
+ * @property {string} [name]
1770
+ * @property {string[]} [arguments]
1771
+ */
1772
+ /**
1773
+ * @typedef {Object} Open
1774
+ * @property {string | string[] | OpenApp} [app]
1775
+ * @property {string | string[]} [target]
1776
+ */
1777
+ /**
1778
+ * @typedef {Object} NormalizedOpen
1779
+ * @property {string} target
1780
+ * @property {import("open").Options} options
1781
+ */
1782
+ /**
1783
+ * @typedef {Object} WebSocketURL
1784
+ * @property {string} [hostname]
1785
+ * @property {string} [password]
1786
+ * @property {string} [pathname]
1787
+ * @property {number | string} [port]
1788
+ * @property {string} [protocol]
1789
+ * @property {string} [username]
1790
+ */
1791
+ /**
1792
+ * @typedef {Object} ClientConfiguration
1793
+ * @property {"log" | "info" | "warn" | "error" | "none" | "verbose"} [logging]
1794
+ * @property {boolean | { warnings?: boolean, errors?: boolean }} [overlay]
1795
+ * @property {boolean} [progress]
1796
+ * @property {boolean | number} [reconnect]
1797
+ * @property {"ws" | "sockjs" | string} [webSocketTransport]
1798
+ * @property {string | WebSocketURL} [webSocketURL]
1799
+ */
1800
+ /**
1801
+ * @typedef {Array<{ key: string; value: string }> | Record<string, string | string[]>} Headers
1802
+ */
1803
+ /**
1804
+ * @typedef {{ name?: string, path?: string, middleware: ExpressRequestHandler | ExpressErrorRequestHandler } | ExpressRequestHandler | ExpressErrorRequestHandler} Middleware
1805
+ */
1806
+ /**
1807
+ * @typedef {Object} Configuration
1808
+ * @property {boolean | string} [ipc]
1809
+ * @property {Host} [host]
1810
+ * @property {Port} [port]
1811
+ * @property {boolean | "only"} [hot]
1812
+ * @property {boolean} [liveReload]
1813
+ * @property {DevMiddlewareOptions<Request, Response>} [devMiddleware]
1814
+ * @property {boolean} [compress]
1815
+ * @property {boolean} [magicHtml]
1816
+ * @property {"auto" | "all" | string | string[]} [allowedHosts]
1817
+ * @property {boolean | ConnectHistoryApiFallbackOptions} [historyApiFallback]
1818
+ * @property {boolean} [setupExitSignals]
1819
+ * @property {boolean | Record<string, never> | BonjourOptions} [bonjour]
1820
+ * @property {string | string[] | WatchFiles | Array<string | WatchFiles>} [watchFiles]
1821
+ * @property {boolean | string | Static | Array<string | Static>} [static]
1822
+ * @property {boolean | ServerOptions} [https]
1823
+ * @property {boolean} [http2]
1824
+ * @property {"http" | "https" | "spdy" | string | ServerConfiguration} [server]
1825
+ * @property {boolean | "sockjs" | "ws" | string | WebSocketServerConfiguration} [webSocketServer]
1826
+ * @property {ProxyConfigMap | ProxyConfigArrayItem | ProxyConfigArray} [proxy]
1827
+ * @property {boolean | string | Open | Array<string | Open>} [open]
1828
+ * @property {boolean} [setupExitSignals]
1829
+ * @property {boolean | ClientConfiguration} [client]
1830
+ * @property {Headers | ((req: Request, res: Response, context: DevMiddlewareContext<Request, Response>) => Headers)} [headers]
1831
+ * @property {(devServer: Server) => void} [onAfterSetupMiddleware]
1832
+ * @property {(devServer: Server) => void} [onBeforeSetupMiddleware]
1833
+ * @property {(devServer: Server) => void} [onListening]
1834
+ * @property {(middlewares: Middleware[], devServer: Server) => Middleware[]} [setupMiddlewares]
1835
+ */
1785
1836
  description: string;
1786
1837
  link: string;
1787
1838
  };
@@ -1791,6 +1842,15 @@ declare class Server {
1791
1842
  ClientWebSocketTransportString: {
1792
1843
  type: string;
1793
1844
  minLength: number;
1845
+ /**
1846
+ * @typedef {Object} WebSocketURL
1847
+ * @property {string} [hostname]
1848
+ * @property {string} [password]
1849
+ * @property {string} [pathname]
1850
+ * @property {number | string} [port]
1851
+ * @property {string} [protocol]
1852
+ * @property {string} [username]
1853
+ */
1794
1854
  };
1795
1855
  ClientWebSocketURL: {
1796
1856
  description: string;
@@ -1934,9 +1994,6 @@ declare class Server {
1934
1994
  )[];
1935
1995
  description: string;
1936
1996
  };
1937
- /**
1938
- * @type {FSWatcher[]}
1939
- */
1940
1997
  cacert: {
1941
1998
  anyOf: (
1942
1999
  | {
@@ -2000,6 +2057,10 @@ declare class Server {
2000
2057
  description: string;
2001
2058
  };
2002
2059
  crl: {
2060
+ /**
2061
+ * @param {"v4" | "v6"} family
2062
+ * @returns {Promise<string | undefined>}
2063
+ */
2003
2064
  anyOf: (
2004
2065
  | {
2005
2066
  type: string;
@@ -2107,13 +2168,10 @@ declare class Server {
2107
2168
  description: string;
2108
2169
  };
2109
2170
  };
2110
- cli?: undefined;
2171
+ cli?: undefined /** @typedef {import("express").Request} Request */;
2111
2172
  }
2112
2173
  )[];
2113
2174
  description: string;
2114
- /**
2115
- * @type {string | undefined}
2116
- */
2117
2175
  link: string;
2118
2176
  };
2119
2177
  HeaderObject: {
@@ -2157,15 +2215,15 @@ declare class Server {
2157
2215
  }
2158
2216
  )[];
2159
2217
  description: string;
2160
- link: string;
2218
+ link: string /** @type {WebSocketURL} */;
2161
2219
  };
2162
- /**
2163
- * @type {string[]}
2164
- */
2165
2220
  HistoryApiFallback: {
2166
2221
  anyOf: (
2167
2222
  | {
2168
2223
  type: string;
2224
+ cli: {
2225
+ negatedDescription: string;
2226
+ };
2169
2227
  description?: undefined;
2170
2228
  link?: undefined;
2171
2229
  }
@@ -2173,6 +2231,8 @@ declare class Server {
2173
2231
  type: string;
2174
2232
  description: string;
2175
2233
  link: string;
2234
+ /** @type {string} */
2235
+ cli?: undefined /** @typedef {import("express").Request} Request */;
2176
2236
  }
2177
2237
  )[];
2178
2238
  description: string;
@@ -2198,24 +2258,25 @@ declare class Server {
2198
2258
  anyOf: (
2199
2259
  | {
2200
2260
  type: string;
2261
+ cli: {
2262
+ negatedDescription: string;
2263
+ };
2201
2264
  enum?: undefined;
2202
2265
  }
2203
2266
  | {
2204
2267
  enum: string[];
2205
2268
  type?: undefined;
2269
+ cli?: undefined /** @typedef {import("express").Request} Request */;
2206
2270
  }
2207
2271
  )[];
2208
2272
  description: string;
2209
2273
  link: string;
2210
- cli: {
2211
- negatedDescription: string;
2212
- };
2213
2274
  };
2214
2275
  IPC: {
2215
2276
  anyOf: (
2216
2277
  | {
2217
2278
  type: string;
2218
- /** @type {ServerConfiguration} */ minLength: number;
2279
+ minLength: number;
2219
2280
  enum?: undefined;
2220
2281
  }
2221
2282
  | {
@@ -2313,6 +2374,12 @@ declare class Server {
2313
2374
  anyOf: (
2314
2375
  | {
2315
2376
  type: string;
2377
+ /**
2378
+ * prependEntry Method for webpack 4
2379
+ * @param {any} originalEntry
2380
+ * @param {any} newAdditionalEntries
2381
+ * @returns {any}
2382
+ */
2316
2383
  items: {
2317
2384
  type: string;
2318
2385
  minLength: number;
@@ -2337,7 +2404,7 @@ declare class Server {
2337
2404
  };
2338
2405
  minLength?: undefined;
2339
2406
  description?: undefined;
2340
- cli?: undefined;
2407
+ cli?: undefined /** @typedef {import("express").Request} Request */;
2341
2408
  }
2342
2409
  | {
2343
2410
  type: string;
@@ -2354,6 +2421,7 @@ declare class Server {
2354
2421
  };
2355
2422
  };
2356
2423
  };
2424
+ /** @type {any} */
2357
2425
  OpenString: {
2358
2426
  type: string;
2359
2427
  minLength: number;
@@ -2412,14 +2480,10 @@ declare class Server {
2412
2480
  };
2413
2481
  Server: {
2414
2482
  anyOf: {
2415
- $ref: string;
2483
+ $ref: string /** @type {MultiCompiler} */;
2416
2484
  }[];
2417
2485
  link: string;
2418
2486
  description: string;
2419
- /**
2420
- * @private
2421
- * @returns {Compiler["options"]}
2422
- */
2423
2487
  };
2424
2488
  ServerType: {
2425
2489
  enum: string[];
@@ -2434,8 +2498,8 @@ declare class Server {
2434
2498
  type: string;
2435
2499
  minLength: number;
2436
2500
  cli: {
2437
- exclude: boolean /** @type {MultiCompiler} */;
2438
- } /** @type {MultiCompiler} */;
2501
+ exclude: boolean;
2502
+ };
2439
2503
  };
2440
2504
  ServerObject: {
2441
2505
  type: string;
@@ -2453,7 +2517,7 @@ declare class Server {
2453
2517
  };
2454
2518
  ServerOptions: {
2455
2519
  type: string;
2456
- /** @type {MultiCompiler} */ additionalProperties: boolean;
2520
+ additionalProperties: boolean;
2457
2521
  properties: {
2458
2522
  passphrase: {
2459
2523
  type: string;
@@ -2462,6 +2526,9 @@ declare class Server {
2462
2526
  requestCert: {
2463
2527
  type: string;
2464
2528
  description: string;
2529
+ cli: {
2530
+ negatedDescription: string;
2531
+ };
2465
2532
  };
2466
2533
  ca: {
2467
2534
  anyOf: (
@@ -2564,6 +2631,7 @@ declare class Server {
2564
2631
  anyOf: (
2565
2632
  | {
2566
2633
  type: string;
2634
+ /** @type {NormalizedStatic} */
2567
2635
  instanceof?: undefined;
2568
2636
  }
2569
2637
  | {
@@ -2687,10 +2755,14 @@ declare class Server {
2687
2755
  $ref: string;
2688
2756
  }[];
2689
2757
  };
2758
+ cli?: undefined /** @typedef {import("express").Request} Request */;
2690
2759
  $ref?: undefined;
2691
2760
  }
2692
2761
  | {
2693
2762
  type: string;
2763
+ cli: {
2764
+ negatedDescription: string;
2765
+ };
2694
2766
  items?: undefined;
2695
2767
  $ref?: undefined;
2696
2768
  }
@@ -2698,6 +2770,7 @@ declare class Server {
2698
2770
  $ref: string;
2699
2771
  type?: undefined;
2700
2772
  items?: undefined;
2773
+ cli?: undefined /** @typedef {import("express").Request} Request */;
2701
2774
  }
2702
2775
  )[];
2703
2776
  description: string;
@@ -2740,23 +2813,27 @@ declare class Server {
2740
2813
  anyOf: (
2741
2814
  | {
2742
2815
  type: string;
2816
+ cli: {
2817
+ negatedDescription: string;
2818
+ };
2743
2819
  additionalProperties?: undefined;
2744
2820
  }
2745
2821
  | {
2746
2822
  type: string;
2747
2823
  additionalProperties: boolean;
2824
+ cli?: undefined /** @typedef {import("express").Request} Request */;
2748
2825
  }
2749
2826
  )[];
2750
2827
  description: string;
2751
- cli: {
2752
- negatedDescription: string;
2753
- };
2754
2828
  link: string;
2755
2829
  };
2756
2830
  watch: {
2757
2831
  anyOf: (
2758
2832
  | {
2759
2833
  type: string;
2834
+ cli: {
2835
+ negatedDescription: string;
2836
+ };
2760
2837
  description?: undefined;
2761
2838
  link?: undefined;
2762
2839
  }
@@ -2764,12 +2841,10 @@ declare class Server {
2764
2841
  type: string;
2765
2842
  description: string;
2766
2843
  link: string;
2844
+ cli?: undefined /** @typedef {import("express").Request} Request */;
2767
2845
  }
2768
2846
  )[];
2769
2847
  description: string;
2770
- cli: {
2771
- negatedDescription: string;
2772
- };
2773
2848
  link: string;
2774
2849
  };
2775
2850
  };
@@ -2849,16 +2924,19 @@ declare class Server {
2849
2924
  anyOf: (
2850
2925
  | {
2851
2926
  enum: boolean[];
2927
+ cli: {
2928
+ negatedDescription: string;
2929
+ };
2852
2930
  $ref?: undefined;
2853
2931
  }
2854
2932
  | {
2855
2933
  $ref: string;
2856
2934
  enum?: undefined;
2935
+ cli?: undefined /** @typedef {import("express").Request} Request */;
2857
2936
  }
2858
2937
  )[];
2859
- /** @type {ServerOptions} */
2860
2938
  cli: {
2861
- description: string;
2939
+ description: string /** @type {any} */;
2862
2940
  };
2863
2941
  };
2864
2942
  WebSocketServerFunction: {
@@ -2996,9 +3074,10 @@ declare class Server {
2996
3074
  static getHostname(hostname: Host): Promise<string>;
2997
3075
  /**
2998
3076
  * @param {Port} port
3077
+ * @param {string} host
2999
3078
  * @returns {Promise<number | string>}
3000
3079
  */
3001
- static getFreePort(port: Port): Promise<number | string>;
3080
+ static getFreePort(port: Port, host: string): Promise<number | string>;
3002
3081
  /**
3003
3082
  * @returns {string}
3004
3083
  */
@@ -3172,7 +3251,7 @@ declare class Server {
3172
3251
  private runBonjour;
3173
3252
  /**
3174
3253
  * @private
3175
- * @type {import("bonjour").Bonjour | undefined}
3254
+ * @type {Bonjour | undefined}
3176
3255
  */
3177
3256
  private bonjour;
3178
3257
  /**
@@ -3294,7 +3373,6 @@ declare namespace Server {
3294
3373
  NextFunction,
3295
3374
  ExpressRequestHandler,
3296
3375
  ExpressErrorRequestHandler,
3297
- AnymatchMatcher,
3298
3376
  WatchOptions,
3299
3377
  FSWatcher,
3300
3378
  ConnectHistoryApiFallbackOptions,
@@ -3364,7 +3442,11 @@ type Configuration = {
3364
3442
  | import("connect-history-api-fallback").Options
3365
3443
  | undefined;
3366
3444
  setupExitSignals?: boolean | undefined;
3367
- bonjour?: boolean | import("bonjour").BonjourOptions | undefined;
3445
+ bonjour?:
3446
+ | boolean
3447
+ | Record<string, never>
3448
+ | import("bonjour-service").Service
3449
+ | undefined;
3368
3450
  watchFiles?:
3369
3451
  | string
3370
3452
  | string[]
@@ -3429,12 +3511,11 @@ type Response = import("express").Response;
3429
3511
  type NextFunction = import("express").NextFunction;
3430
3512
  type ExpressRequestHandler = import("express").RequestHandler;
3431
3513
  type ExpressErrorRequestHandler = import("express").ErrorRequestHandler;
3432
- type AnymatchMatcher = import("anymatch").Matcher;
3433
3514
  type WatchOptions = import("chokidar").WatchOptions;
3434
3515
  type ConnectHistoryApiFallbackOptions =
3435
3516
  import("connect-history-api-fallback").Options;
3436
- type Bonjour = import("bonjour").Bonjour;
3437
- type BonjourOptions = import("bonjour").BonjourOptions;
3517
+ type Bonjour = import("bonjour-service").Bonjour;
3518
+ type BonjourOptions = import("bonjour-service").Service;
3438
3519
  type RequestHandler = import("http-proxy-middleware").RequestHandler;
3439
3520
  type HttpProxyMiddlewareOptions = import("http-proxy-middleware").Options;
3440
3521
  type HttpProxyMiddlewareOptionsFilter = import("http-proxy-middleware").Filter;
@@ -3454,15 +3535,15 @@ type ServerOptions = import("https").ServerOptions & {
3454
3535
  };
3455
3536
  };
3456
3537
  type DevMiddlewareOptions<Request_1, Response_1> =
3457
- import("webpack-dev-middleware").Options<Request_1, Response_1>;
3538
+ import("webpack-dev-middleware").Options<Request, Response>;
3458
3539
  type DevMiddlewareContext<Request_1, Response_1> =
3459
- import("webpack-dev-middleware").Context<Request_1, Response_1>;
3540
+ import("webpack-dev-middleware").Context<Request, Response>;
3460
3541
  type WatchFiles = {
3461
3542
  paths: string | string[];
3462
3543
  options?:
3463
3544
  | (import("chokidar").WatchOptions & {
3464
3545
  aggregateTimeout?: number | undefined;
3465
- ignored?: string[] | import("anymatch").Matcher | undefined;
3546
+ ignored?: WatchOptions["ignored"];
3466
3547
  poll?: number | boolean | undefined;
3467
3548
  })
3468
3549
  | undefined;
@@ -3478,7 +3559,7 @@ type Static = {
3478
3559
  | boolean
3479
3560
  | (import("chokidar").WatchOptions & {
3480
3561
  aggregateTimeout?: number | undefined;
3481
- ignored?: string[] | import("anymatch").Matcher | undefined;
3562
+ ignored?: WatchOptions["ignored"];
3482
3563
  poll?: number | boolean | undefined;
3483
3564
  })
3484
3565
  | undefined;