Skip to content

Commit

Permalink
chore: update typescript to v4.9.3 (#4649)
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Nov 21, 2022
1 parent 2c089ca commit b0a35f8
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 18 deletions.
2 changes: 1 addition & 1 deletion lib/Server.js
Expand Up @@ -1160,7 +1160,7 @@ class Server {

if (
!(/** @type {ServerOptions} */ (options.server.options).key) ||
/** @type {ServerOptions} */ (!options.server.options).cert
!(/** @type {ServerOptions} */ (options.server.options).cert)
) {
const certificateDir = Server.findCacheDir();
const certificatePath = path.join(certificateDir, "server.pem");
Expand Down
27 changes: 14 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -87,6 +87,7 @@
"@commitlint/config-conventional": "^16.2.1",
"@types/compression": "^1.7.2",
"@types/default-gateway": "^3.0.1",
"@types/node": "^18.11.9",
"@types/node-forge": "^1.0.4",
"@types/rimraf": "^3.0.2",
"@types/sockjs-client": "^1.5.1",
Expand Down Expand Up @@ -125,7 +126,7 @@
"style-loader": "^2.0.0",
"supertest": "^6.1.3",
"tcp-port-used": "^1.0.2",
"typescript": "^4.7.2",
"typescript": "^4.9.3",
"url-loader": "^4.1.1",
"wait-for-expect": "^3.0.2",
"webpack": "^5.75.0",
Expand Down
7 changes: 4 additions & 3 deletions types/lib/Server.d.ts
Expand Up @@ -1248,7 +1248,7 @@ declare class Server {
type: string;
multiple: boolean;
description: string;
path: string;
path: string /** @type {ServerOptions} */;
}[];
description: string;
simpleType: string;
Expand Down Expand Up @@ -1344,7 +1344,6 @@ declare class Server {
type: string;
}
)[];
/** @type {ServerOptions & { cacert?: ServerOptions["ca"] }} */
description: string;
simpleType: string;
multiple: boolean;
Expand Down Expand Up @@ -3544,7 +3543,9 @@ type Static = {
publicPath?: string | string[] | undefined;
serveIndex?: boolean | import("serve-index").Options | undefined;
staticOptions?:
| import("serve-static").ServeStaticOptions<import("http").ServerResponse>
| import("serve-static").ServeStaticOptions<
import("http").ServerResponse<import("http").IncomingMessage>
>
| undefined;
watch?:
| boolean
Expand Down

0 comments on commit b0a35f8

Please sign in to comment.