File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff 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 ;
15821588type 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 ?:
You can’t perform that action at this time.
0 commit comments