mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-05 20:02:05 +08:00
Merge pull request #24021 from WilliamHayward/master
[websocket] Fixed websocket to allow for https and arrays
This commit is contained in:
4
types/websocket/index.d.ts
vendored
4
types/websocket/index.d.ts
vendored
@@ -62,8 +62,8 @@ export interface IConfig {
|
||||
}
|
||||
|
||||
export interface IServerConfig extends IConfig {
|
||||
/** The http server instance to attach to */
|
||||
httpServer: http.Server;
|
||||
/** The http or https server instance(s) to attach to */
|
||||
httpServer: http.Server | https.Server | (http.Server | https.Server)[];
|
||||
|
||||
/**
|
||||
* The maximum allowed received frame size in bytes.
|
||||
|
||||
Reference in New Issue
Block a user