Fix createConnection params in node/http2.d.ts (#34197)

* Fix createConnection params in http2.d.ts

*  Fix createConnection params in v10/http2.d.ts
This commit is contained in:
AlexOwl
2019-03-25 13:41:51 -07:00
committed by Ron Buckton
parent d3c049a475
commit dfc313721a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -415,7 +415,7 @@ declare module "http2" {
peerMaxConcurrentStreams?: number;
selectPadding?: (frameLen: number, maxFrameLen: number) => number;
settings?: Settings;
createConnection?: (option: SessionOptions) => stream.Duplex;
createConnection?: (authority: url.URL, option: SessionOptions) => stream.Duplex;
}
export type ClientSessionOptions = SessionOptions;
+1 -1
View File
@@ -415,7 +415,7 @@ declare module "http2" {
peerMaxConcurrentStreams?: number;
selectPadding?: (frameLen: number, maxFrameLen: number) => number;
settings?: Settings;
createConnection?: (option: SessionOptions) => stream.Duplex;
createConnection?: (authority: url.URL, option: SessionOptions) => stream.Duplex;
}
export type ClientSessionOptions = SessionOptions;