[@types/node] Http2ServerResponse extends Stream (#37812)

* [@types/node][v10] Http2ServerResponse extends Stream

This was fixed in newer versions in #33527 but got missed in v10

* [@types/node][v8+v9] Http2ServerResponse extends Stream

* Added trivikr@ in Definitions by for @types/node
This commit is contained in:
Trivikram Kamat
2019-09-10 22:38:47 -07:00
committed by Mine Starks
parent ffc6eff83b
commit b54b6980a0
4 changed files with 4 additions and 3 deletions
+1
View File
@@ -37,6 +37,7 @@
// Jordi Oliveras Rovira <https://github.com/j-oliveras>
// Thanik Bhongbhibhat <https://github.com/bhongy>
// Marcin Kopacz <https://github.com/chyzwar>
// Trivikram Kamat <https://github.com/trivikr>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// NOTE: These definitions support NodeJS and TypeScript 3.2.
+1 -1
View File
@@ -556,7 +556,7 @@ declare module "http2" {
prependOnceListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this;
}
export class Http2ServerResponse extends events.EventEmitter {
export class Http2ServerResponse extends stream.Stream {
private constructor();
addTrailers(trailers: OutgoingHttpHeaders): void;
connection: net.Socket | tls.TLSSocket;
+1 -1
View File
@@ -6792,7 +6792,7 @@ declare module "http2" {
prependOnceListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this;
}
export class Http2ServerResponse extends events.EventEmitter {
export class Http2ServerResponse extends stream.Stream {
private constructor();
addTrailers(trailers: OutgoingHttpHeaders): void;
connection: net.Socket | tls.TLSSocket;
+1 -1
View File
@@ -7213,7 +7213,7 @@ declare module "http2" {
prependOnceListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this;
}
export class Http2ServerResponse extends events.EventEmitter {
export class Http2ServerResponse extends stream.Stream {
private constructor();
addTrailers(trailers: OutgoingHttpHeaders): void;
connection: net.Socket | tls.TLSSocket;