diff --git a/types/node/http2.d.ts b/types/node/http2.d.ts index adeee5402b..9b3fd295aa 100644 --- a/types/node/http2.d.ts +++ b/types/node/http2.d.ts @@ -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; diff --git a/types/node/v10/http2.d.ts b/types/node/v10/http2.d.ts index 0d23809c99..06ebb77b7b 100644 --- a/types/node/v10/http2.d.ts +++ b/types/node/v10/http2.d.ts @@ -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;