mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-28 08:17:54 +08:00
Merge pull request #26512 from Flarna/node_correct_http2_status
[node] Correct type of incoming http2 ':status' header
This commit is contained in:
@@ -3567,7 +3567,9 @@ namespace http2_tests {
|
||||
let clientHttp2Stream: http2.ClientHttp2Stream;
|
||||
clientHttp2Stream.on('headers', (headers: http2.IncomingHttpHeaders, flags: number) => {});
|
||||
clientHttp2Stream.on('push', (headers: http2.IncomingHttpHeaders, flags: number) => {});
|
||||
clientHttp2Stream.on('response', (headers: http2.IncomingHttpHeaders, flags: number) => {});
|
||||
clientHttp2Stream.on('response', (headers: http2.IncomingHttpHeaders & http2.IncomingHttpStatusHeader, flags: number) => {
|
||||
const s: number = headers[':status'];
|
||||
});
|
||||
|
||||
// ServerHttp2Stream
|
||||
let serverHttp2Stream: http2.ServerHttp2Stream;
|
||||
|
||||
Reference in New Issue
Block a user