Skip to content

Commit 56a6dca

Browse files
refactor: rebase
1 parent 1e14328 commit 56a6dca

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

types/lib/Server.d.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -1302,8 +1302,12 @@ declare class Server<
13021302
* @returns {void}
13031303
*/
13041304
private createServer;
1305-
/** @type {import("http").Server | undefined | null} */
1306-
server: import("http").Server | undefined | null;
1305+
/** @type {import("http").Server | import("http2").Http2SecureServer | undefined | null} */
1306+
server:
1307+
| import("http").Server
1308+
| import("http2").Http2SecureServer
1309+
| undefined
1310+
| null;
13071311
/**
13081312
* @private
13091313
* @returns {void}
@@ -1449,6 +1453,7 @@ declare namespace Server {
14491453
WatchFiles,
14501454
Static,
14511455
NormalizedStatic,
1456+
ServerType,
14521457
ServerConfiguration,
14531458
WebSocketServerConfiguration,
14541459
ClientConnection,
@@ -1579,6 +1584,7 @@ type NormalizedStatic = {
15791584
staticOptions: ServeStaticOptions;
15801585
watch: false | WatchOptions;
15811586
};
1587+
type ServerType = "http" | "https" | "spdy" | "http2" | string;
15821588
type ServerConfiguration = {
15831589
type?: string | undefined;
15841590
options?: ServerOptions | undefined;
@@ -1716,7 +1722,6 @@ type Configuration<T extends BasicApplication = import("express").Application> =
17161722
| (string | WatchFiles)[]
17171723
| undefined;
17181724
static?: string | boolean | Static | (string | Static)[] | undefined;
1719-
https?: boolean | ServerOptions | undefined;
17201725
server?: string | ServerConfiguration | undefined;
17211726
app?: (() => Promise<T>) | undefined;
17221727
webSocketServer?:

0 commit comments

Comments
 (0)