@@ -664,6 +664,7 @@ declare class Server {
664
664
};
665
665
/**
666
666
* @param {Port} port
667
+ * @param {string} host
667
668
* @returns {Promise<number | string>}
668
669
*/
669
670
https: {
@@ -716,9 +717,9 @@ declare class Server {
716
717
description: string;
717
718
multiple: boolean;
718
719
path: string;
719
- type: string;
720
+ type: string /** @type {WebSocketURL} */ ;
720
721
}[];
721
- /** @type {ClientConfiguration} */ description: string;
722
+ description: string;
722
723
multiple: boolean;
723
724
simpleType: string;
724
725
};
@@ -730,7 +731,7 @@ declare class Server {
730
731
path: string;
731
732
}[];
732
733
description: string;
733
- simpleType: string;
734
+ /** @type {ServerConfiguration} */ simpleType: string;
734
735
multiple: boolean;
735
736
};
736
737
"https-cert-reset": {
@@ -881,7 +882,7 @@ declare class Server {
881
882
configs: (
882
883
| {
883
884
type: string;
884
- /** @type {MultiCompiler} */ multiple: boolean;
885
+ multiple: boolean;
885
886
description: string;
886
887
path: string;
887
888
}
@@ -905,6 +906,10 @@ declare class Server {
905
906
path: string;
906
907
}[];
907
908
description: string;
909
+ /**
910
+ * @private
911
+ * @returns {Promise<void>}
912
+ */
908
913
simpleType: string;
909
914
multiple: boolean;
910
915
};
@@ -952,6 +957,10 @@ declare class Server {
952
957
simpleType: string;
953
958
multiple: boolean;
954
959
};
960
+ /**
961
+ * @param {string | Static | undefined} [optionsForStatic]
962
+ * @returns {NormalizedStatic}
963
+ */
955
964
"open-target-reset": {
956
965
configs: {
957
966
type: string;
@@ -1118,7 +1127,7 @@ declare class Server {
1118
1127
"server-options-pfx-reset": {
1119
1128
configs: {
1120
1129
description: string;
1121
- multiple: boolean;
1130
+ /** @type {ServerConfiguration} */ multiple: boolean;
1122
1131
path: string;
1123
1132
type: string;
1124
1133
}[];
@@ -1131,7 +1140,7 @@ declare class Server {
1131
1140
description: string;
1132
1141
negatedDescription: string;
1133
1142
multiple: boolean;
1134
- /** @type {ServerOptions} */ path: string;
1143
+ path: string;
1135
1144
type: string;
1136
1145
}[];
1137
1146
description: string;
@@ -1144,10 +1153,10 @@ declare class Server {
1144
1153
multiple: boolean;
1145
1154
path: string;
1146
1155
type: string;
1147
- values: string[];
1156
+ /** @type {ServerOptions} */ values: string[];
1148
1157
}[];
1149
1158
description: string;
1150
- multiple: boolean;
1159
+ /** @type {Array<keyof ServerOptions>} */ multiple: boolean;
1151
1160
simpleType: string;
1152
1161
};
1153
1162
static: {
@@ -1167,7 +1176,7 @@ declare class Server {
1167
1176
}
1168
1177
)[];
1169
1178
description: string;
1170
- simpleType: string;
1179
+ /** @type {ServerOptions} */ simpleType: string;
1171
1180
multiple: boolean;
1172
1181
};
1173
1182
"static-directory": {
@@ -1279,7 +1288,7 @@ declare class Server {
1279
1288
}
1280
1289
| {
1281
1290
description: string;
1282
- multiple: boolean;
1291
+ /** @type {ServerOptions & { cacert?: ServerOptions["ca"] }} */ multiple: boolean;
1283
1292
path: string;
1284
1293
type: string;
1285
1294
}
@@ -1292,6 +1301,7 @@ declare class Server {
1292
1301
configs: (
1293
1302
| {
1294
1303
description: string;
1304
+ /** @type {ServerOptions & { cacert?: ServerOptions["ca"] }} */
1295
1305
multiple: boolean;
1296
1306
path: string;
1297
1307
type: string;
@@ -1300,13 +1310,13 @@ declare class Server {
1300
1310
| {
1301
1311
description: string;
1302
1312
multiple: boolean;
1303
- /** @type {ServerOptions} */ path: string;
1304
- type: string;
1313
+ path: string;
1314
+ /** @type {ServerOptions} */ type: string;
1305
1315
}
1306
1316
)[];
1307
1317
description: string;
1308
1318
simpleType: string;
1309
- multiple: boolean;
1319
+ /** @type {ServerOptions} */ multiple: boolean;
1310
1320
};
1311
1321
};
1312
1322
readonly processArguments: (
@@ -2033,6 +2043,9 @@ declare class Server {
2033
2043
instanceof?: undefined;
2034
2044
}
2035
2045
)[];
2046
+ /**
2047
+ * @returns {string}
2048
+ */
2036
2049
};
2037
2050
instanceof?: undefined;
2038
2051
}
@@ -2073,6 +2086,9 @@ declare class Server {
2073
2086
exclude: boolean;
2074
2087
};
2075
2088
};
2089
+ /**
2090
+ * @type {string[]}
2091
+ */
2076
2092
Headers: {
2077
2093
anyOf: (
2078
2094
| {
@@ -2111,7 +2127,7 @@ declare class Server {
2111
2127
}
2112
2128
| {
2113
2129
type: string;
2114
- description: string;
2130
+ /** @type {ClientConfiguration} */ description: string;
2115
2131
link: string;
2116
2132
cli?: undefined /** @typedef {import("express").Request} Request */;
2117
2133
}
@@ -2122,7 +2138,6 @@ declare class Server {
2122
2138
Host: {
2123
2139
description: string;
2124
2140
link: string;
2125
- /** @type {ServerConfiguration} */
2126
2141
anyOf: (
2127
2142
| {
2128
2143
enum: string[];
@@ -2152,7 +2167,7 @@ declare class Server {
2152
2167
}
2153
2168
)[];
2154
2169
description: string;
2155
- link: string;
2170
+ /** @type {string} */ link: string;
2156
2171
};
2157
2172
IPC: {
2158
2173
anyOf: (
@@ -2261,12 +2276,6 @@ declare class Server {
2261
2276
minLength: number;
2262
2277
};
2263
2278
minItems: number;
2264
- /**
2265
- * prependEntry Method for webpack 4
2266
- * @param {any} originalEntry
2267
- * @param {any} newAdditionalEntries
2268
- * @returns {any}
2269
- */
2270
2279
minLength?: undefined;
2271
2280
}
2272
2281
| {
@@ -2317,6 +2326,7 @@ declare class Server {
2317
2326
enum?: undefined;
2318
2327
}
2319
2328
| {
2329
+ /** @type {any} */
2320
2330
type: string;
2321
2331
minLength: number;
2322
2332
minimum?: undefined;
@@ -2372,7 +2382,7 @@ declare class Server {
2372
2382
ServerEnum: {
2373
2383
enum: string[];
2374
2384
cli: {
2375
- exclude: boolean;
2385
+ exclude: boolean /** @type {MultiCompiler} */ ;
2376
2386
};
2377
2387
};
2378
2388
ServerString: {
@@ -2403,10 +2413,6 @@ declare class Server {
2403
2413
passphrase: {
2404
2414
type: string;
2405
2415
description: string;
2406
- /**
2407
- * @private
2408
- * @returns {Promise<void>}
2409
- */
2410
2416
};
2411
2417
requestCert: {
2412
2418
type: string;
@@ -2776,7 +2782,7 @@ declare class Server {
2776
2782
| {
2777
2783
type: string;
2778
2784
minLength: number;
2779
- items?: undefined;
2785
+ /** @type {ServerConfiguration} */ items?: undefined;
2780
2786
}
2781
2787
)[];
2782
2788
description: string;
@@ -2798,8 +2804,8 @@ declare class Server {
2798
2804
anyOf: {
2799
2805
$ref: string;
2800
2806
}[];
2801
- description: string;
2802
- /** @type {Array<keyof ServerOptions>} */ link: string;
2807
+ /** @type {ServerOptions} */ description: string;
2808
+ link: string;
2803
2809
};
2804
2810
WebSocketServerType: {
2805
2811
enum: string[];
@@ -2857,7 +2863,6 @@ declare class Server {
2857
2863
bonjour: {
2858
2864
$ref: string;
2859
2865
};
2860
- /** @type {any} */
2861
2866
client: {
2862
2867
$ref: string;
2863
2868
};
@@ -2959,9 +2964,10 @@ declare class Server {
2959
2964
static getHostname(hostname: Host): Promise<string>;
2960
2965
/**
2961
2966
* @param {Port} port
2967
+ * @param {string} host
2962
2968
* @returns {Promise<number | string>}
2963
2969
*/
2964
- static getFreePort(port: Port): Promise<number | string>;
2970
+ static getFreePort(port: Port, host: string ): Promise<number | string>;
2965
2971
/**
2966
2972
* @returns {string}
2967
2973
*/
0 commit comments