File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1302,8 +1302,12 @@ declare class Server<
1302
1302
* @returns {void }
1303
1303
*/
1304
1304
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 ;
1307
1311
/**
1308
1312
* @private
1309
1313
* @returns {void }
@@ -1449,6 +1453,7 @@ declare namespace Server {
1449
1453
WatchFiles ,
1450
1454
Static ,
1451
1455
NormalizedStatic ,
1456
+ ServerType ,
1452
1457
ServerConfiguration ,
1453
1458
WebSocketServerConfiguration ,
1454
1459
ClientConnection ,
@@ -1579,6 +1584,7 @@ type NormalizedStatic = {
1579
1584
staticOptions : ServeStaticOptions ;
1580
1585
watch : false | WatchOptions ;
1581
1586
} ;
1587
+ type ServerType = "http" | "https" | "spdy" | "http2" | string ;
1582
1588
type ServerConfiguration = {
1583
1589
type ?: string | undefined ;
1584
1590
options ?: ServerOptions | undefined ;
@@ -1716,7 +1722,6 @@ type Configuration<T extends BasicApplication = import("express").Application> =
1716
1722
| ( string | WatchFiles ) [ ]
1717
1723
| undefined ;
1718
1724
static ?: string | boolean | Static | ( string | Static ) [ ] | undefined ;
1719
- https ?: boolean | ServerOptions | undefined ;
1720
1725
server ?: string | ServerConfiguration | undefined ;
1721
1726
app ?: ( ( ) => Promise < T > ) | undefined ;
1722
1727
webSocketServer ?:
You can’t perform that action at this time.
0 commit comments