Skip to content

Commit b0a35f8

Browse files
authored
chore: update typescript to v4.9.3 (#4649)
1 parent 2c089ca commit b0a35f8

File tree

4 files changed

+21
-18
lines changed

4 files changed

+21
-18
lines changed

lib/Server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ class Server {
11601160

11611161
if (
11621162
!(/** @type {ServerOptions} */ (options.server.options).key) ||
1163-
/** @type {ServerOptions} */ (!options.server.options).cert
1163+
!(/** @type {ServerOptions} */ (options.server.options).cert)
11641164
) {
11651165
const certificateDir = Server.findCacheDir();
11661166
const certificatePath = path.join(certificateDir, "server.pem");

package-lock.json

+14-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
"@commitlint/config-conventional": "^16.2.1",
8888
"@types/compression": "^1.7.2",
8989
"@types/default-gateway": "^3.0.1",
90+
"@types/node": "^18.11.9",
9091
"@types/node-forge": "^1.0.4",
9192
"@types/rimraf": "^3.0.2",
9293
"@types/sockjs-client": "^1.5.1",
@@ -125,7 +126,7 @@
125126
"style-loader": "^2.0.0",
126127
"supertest": "^6.1.3",
127128
"tcp-port-used": "^1.0.2",
128-
"typescript": "^4.7.2",
129+
"typescript": "^4.9.3",
129130
"url-loader": "^4.1.1",
130131
"wait-for-expect": "^3.0.2",
131132
"webpack": "^5.75.0",

types/lib/Server.d.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,7 @@ declare class Server {
12481248
type: string;
12491249
multiple: boolean;
12501250
description: string;
1251-
path: string;
1251+
path: string /** @type {ServerOptions} */;
12521252
}[];
12531253
description: string;
12541254
simpleType: string;
@@ -1344,7 +1344,6 @@ declare class Server {
13441344
type: string;
13451345
}
13461346
)[];
1347-
/** @type {ServerOptions & { cacert?: ServerOptions["ca"] }} */
13481347
description: string;
13491348
simpleType: string;
13501349
multiple: boolean;
@@ -3544,7 +3543,9 @@ type Static = {
35443543
publicPath?: string | string[] | undefined;
35453544
serveIndex?: boolean | import("serve-index").Options | undefined;
35463545
staticOptions?:
3547-
| import("serve-static").ServeStaticOptions<import("http").ServerResponse>
3546+
| import("serve-static").ServeStaticOptions<
3547+
import("http").ServerResponse<import("http").IncomingMessage>
3548+
>
35483549
| undefined;
35493550
watch?:
35503551
| boolean

0 commit comments

Comments
 (0)