webpack-dev-server 4.11.1 → 4.12.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.
@@ -726,9 +726,6 @@ declare class Server {
726
726
  "https-ca-reset": {
727
727
  configs: {
728
728
  description: string;
729
- /**
730
- * @type {string[]}
731
- */
732
729
  multiple: boolean;
733
730
  path: string;
734
731
  type: string;
@@ -764,7 +761,7 @@ declare class Server {
764
761
  type: string;
765
762
  multiple: boolean;
766
763
  description: string;
767
- path: string;
764
+ path: string /** @type {string} */;
768
765
  }[];
769
766
  description: string;
770
767
  simpleType: string;
@@ -799,7 +796,7 @@ declare class Server {
799
796
  path: string;
800
797
  type: string;
801
798
  }[];
802
- description: string;
799
+ /** @type {number | string} */ description: string;
803
800
  multiple: boolean;
804
801
  simpleType: string;
805
802
  };
@@ -821,7 +818,7 @@ declare class Server {
821
818
  path: string;
822
819
  type: string;
823
820
  }[];
824
- description: string;
821
+ /** @type {string} */ description: string;
825
822
  multiple: boolean;
826
823
  simpleType: string;
827
824
  };
@@ -865,12 +862,6 @@ declare class Server {
865
862
  description: string;
866
863
  negatedDescription: string;
867
864
  path: string;
868
- /**
869
- * prependEntry Method for webpack 4
870
- * @param {any} originalEntry
871
- * @param {any} newAdditionalEntries
872
- * @returns {any}
873
- */
874
865
  }[];
875
866
  description: string;
876
867
  simpleType: string;
@@ -895,6 +886,12 @@ declare class Server {
895
886
  description: string;
896
887
  simpleType: string;
897
888
  multiple: boolean;
889
+ /**
890
+ * prependEntry Method for webpack 4
891
+ * @param {any} originalEntry
892
+ * @param {any} newAdditionalEntries
893
+ * @returns {any}
894
+ */
898
895
  };
899
896
  "live-reload": {
900
897
  configs: {
@@ -925,7 +922,7 @@ declare class Server {
925
922
  | {
926
923
  type: string;
927
924
  multiple: boolean;
928
- /** @type {MultiCompiler} */ description: string;
925
+ description: string;
929
926
  path: string;
930
927
  }
931
928
  | {
@@ -961,17 +958,13 @@ declare class Server {
961
958
  description: string;
962
959
  simpleType: string;
963
960
  multiple: boolean;
964
- /**
965
- * @param {WatchOptions & { aggregateTimeout?: number, ignored?: WatchOptions["ignored"], poll?: number | boolean }} watchOptions
966
- * @returns {WatchOptions}
967
- */
968
961
  };
969
962
  "open-app-name-reset": {
970
963
  configs: {
971
964
  type: string;
972
965
  multiple: boolean;
973
966
  description: string;
974
- path: string;
967
+ path: string /** @type {Compiler} */;
975
968
  }[];
976
969
  description: string;
977
970
  simpleType: string;
@@ -1195,7 +1188,7 @@ declare class Server {
1195
1188
  }[];
1196
1189
  description: string;
1197
1190
  multiple: boolean;
1198
- simpleType: string /** @type {ServerOptions} */;
1191
+ simpleType: string;
1199
1192
  };
1200
1193
  static: {
1201
1194
  configs: (
@@ -1208,26 +1201,22 @@ declare class Server {
1208
1201
  | {
1209
1202
  type: string;
1210
1203
  multiple: boolean;
1211
- /** @type {ServerOptions} */ description: string;
1204
+ description: string;
1212
1205
  negatedDescription: string;
1213
1206
  path: string;
1214
1207
  }
1215
1208
  )[];
1216
- description: string;
1217
- simpleType: string;
1209
+ /** @type {ServerOptions} */ description: string;
1210
+ /** @type {Array<keyof ServerOptions>} */ simpleType: string;
1218
1211
  multiple: boolean;
1219
1212
  };
1220
1213
  "static-directory": {
1221
1214
  configs: {
1222
1215
  type: string;
1223
- /** @type {any} */ multiple: boolean;
1216
+ multiple: boolean;
1224
1217
  description: string;
1225
1218
  path: string;
1226
1219
  }[];
1227
- /**
1228
- * @param {string | Buffer | undefined} item
1229
- * @returns {string | Buffer | undefined}
1230
- */
1231
1220
  description: string;
1232
1221
  simpleType: string;
1233
1222
  multiple: boolean;
@@ -1240,7 +1229,7 @@ declare class Server {
1240
1229
  path: string;
1241
1230
  }[];
1242
1231
  description: string;
1243
- /** @type {any} */ simpleType: string;
1232
+ simpleType: string;
1244
1233
  multiple: boolean;
1245
1234
  };
1246
1235
  "static-public-path-reset": {
@@ -1259,7 +1248,7 @@ declare class Server {
1259
1248
  type: string;
1260
1249
  multiple: boolean;
1261
1250
  description: string;
1262
- path: string;
1251
+ path: string /** @type {ServerOptions} */;
1263
1252
  }[];
1264
1253
  description: string;
1265
1254
  simpleType: string;
@@ -1352,12 +1341,12 @@ declare class Server {
1352
1341
  description: string;
1353
1342
  multiple: boolean;
1354
1343
  path: string;
1355
- type: string /** @type {ServerOptions & { cacert?: ServerOptions["ca"] }} */;
1344
+ type: string;
1356
1345
  }
1357
1346
  )[];
1358
1347
  description: string;
1359
1348
  simpleType: string;
1360
- multiple: boolean /** @type {ServerOptions} */;
1349
+ multiple: boolean;
1361
1350
  };
1362
1351
  };
1363
1352
  readonly processArguments: (
@@ -2221,7 +2210,7 @@ declare class Server {
2221
2210
  }
2222
2211
  )[];
2223
2212
  description: string;
2224
- link: string /** @type {WebSocketURL} */;
2213
+ link: string;
2225
2214
  };
2226
2215
  HistoryApiFallback: {
2227
2216
  anyOf: (
@@ -2237,7 +2226,6 @@ declare class Server {
2237
2226
  type: string;
2238
2227
  description: string;
2239
2228
  link: string;
2240
- /** @type {string} */
2241
2229
  cli?: undefined /** @typedef {import("express").Request} Request */;
2242
2230
  }
2243
2231
  )[];
@@ -2351,6 +2339,7 @@ declare class Server {
2351
2339
  negatedDescription: string;
2352
2340
  };
2353
2341
  };
2342
+ /** @type {ClientConfiguration} */
2354
2343
  OpenObject: {
2355
2344
  type: string;
2356
2345
  additionalProperties: boolean;
@@ -2481,6 +2470,7 @@ declare class Server {
2481
2470
  anyOf: {
2482
2471
  $ref: string;
2483
2472
  }[];
2473
+ /** @type {any} */
2484
2474
  link: string;
2485
2475
  description: string;
2486
2476
  };
@@ -2502,6 +2492,7 @@ declare class Server {
2502
2492
  };
2503
2493
  ServerObject: {
2504
2494
  type: string;
2495
+ /** @type {string} */
2505
2496
  properties: {
2506
2497
  type: {
2507
2498
  anyOf: {
@@ -2509,7 +2500,7 @@ declare class Server {
2509
2500
  }[];
2510
2501
  };
2511
2502
  options: {
2512
- $ref: string;
2503
+ $ref: string /** @type {MultiCompiler} */;
2513
2504
  };
2514
2505
  };
2515
2506
  additionalProperties: boolean;
@@ -2522,6 +2513,7 @@ declare class Server {
2522
2513
  type: string;
2523
2514
  description: string;
2524
2515
  };
2516
+ /** @type {MultiCompiler} */
2525
2517
  requestCert: {
2526
2518
  type: string;
2527
2519
  description: string;
@@ -2922,10 +2914,10 @@ declare class Server {
2922
2914
  anyOf: (
2923
2915
  | {
2924
2916
  enum: boolean[];
2925
- /** @type {ServerOptions} */ cli: {
2917
+ cli: {
2926
2918
  negatedDescription: string;
2927
2919
  };
2928
- /** @type {ServerOptions} */ $ref?: undefined;
2920
+ $ref?: undefined;
2929
2921
  }
2930
2922
  | {
2931
2923
  $ref: string;
@@ -2950,6 +2942,7 @@ declare class Server {
2950
2942
  };
2951
2943
  options: {
2952
2944
  type: string;
2945
+ /** @type {Array<keyof ServerOptions>} */
2953
2946
  additionalProperties: boolean;
2954
2947
  cli: {
2955
2948
  exclude: boolean;
@@ -2986,6 +2979,7 @@ declare class Server {
2986
2979
  historyApiFallback: {
2987
2980
  $ref: string;
2988
2981
  };
2982
+ /** @type {ServerOptions} */
2989
2983
  host: {
2990
2984
  $ref: string;
2991
2985
  };
@@ -3080,6 +3074,12 @@ declare class Server {
3080
3074
  * @returns {string}
3081
3075
  */
3082
3076
  static findCacheDir(): string;
3077
+ /**
3078
+ * @private
3079
+ * @param {Compiler} compiler
3080
+ * @returns bool
3081
+ */
3082
+ private static isWebTarget;
3083
3083
  /**
3084
3084
  * @param {Configuration | Compiler | MultiCompiler} options
3085
3085
  * @param {Compiler | MultiCompiler | Configuration} compiler
@@ -3543,7 +3543,9 @@ type Static = {
3543
3543
  publicPath?: string | string[] | undefined;
3544
3544
  serveIndex?: boolean | import("serve-index").Options | undefined;
3545
3545
  staticOptions?:
3546
- | import("serve-static").ServeStaticOptions<import("http").ServerResponse>
3546
+ | import("serve-static").ServeStaticOptions<
3547
+ import("http").ServerResponse<import("http").IncomingMessage>
3548
+ >
3547
3549
  | undefined;
3548
3550
  watch?:
3549
3551
  | boolean