diff --git a/types/node/http2.d.ts b/types/node/http2.d.ts index 5ebe11a5e4..8125a66dc5 100644 --- a/types/node/http2.d.ts +++ b/types/node/http2.d.ts @@ -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; diff --git a/types/node/test/http2.ts b/types/node/test/http2.ts index 3b47929d92..0ab78edbcc 100644 --- a/types/node/test/http2.ts +++ b/types/node/test/http2.ts @@ -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({