From c474cdf5d7ed2ead9b6f0434e5c7eb5aa70a0439 Mon Sep 17 00:00:00 2001 From: Michael Lumish Date: Thu, 6 Jun 2019 11:25:00 -0700 Subject: [PATCH] Add type definition for Http2Stream#id property (#35982) --- types/node/http2.d.ts | 1 + types/node/test/http2.ts | 1 + 2 files changed, 2 insertions(+) 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({