Add type definition for Http2Stream#id property (#35982)

This commit is contained in:
Michael Lumish
2019-06-06 11:25:00 -07:00
committed by Andrew Casey
parent 3d3afe9001
commit c474cdf5d7
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -71,6 +71,7 @@ declare module "http2" {
* indicating that no additional data should be received and the readable side of the Http2Stream will be closed.
*/
readonly endAfterHeaders: boolean;
readonly id?: number;
readonly pending: boolean;
readonly rstCode: number;
readonly sentHeaders: OutgoingHttpHeaders;
+1
View File
@@ -143,6 +143,7 @@ import { URL } from 'url';
const bufferSize: number = http2Stream.bufferSize;
const closed: boolean = http2Stream.closed;
const destroyed: boolean = http2Stream.destroyed;
const id: number | undefined = http2Stream.id;
const pending: boolean = http2Stream.pending;
http2Stream.priority({