mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Add type definition for Http2Stream#id property (#35982)
This commit is contained in:
committed by
Andrew Casey
parent
3d3afe9001
commit
c474cdf5d7
Vendored
+1
@@ -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;
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user