From 788344f822d83587c8322d01c6e4cd3abfceefa9 Mon Sep 17 00:00:00 2001 From: Daniel Bankhead Date: Wed, 4 Oct 2023 18:52:42 -0700 Subject: [PATCH] fix: `Timeout` type (#528) * fix: Timeout type * fix: `tsconfig` includes * chore: revert `tsconfig.json` change * fix: Add `@babel/plugin-proposal-private-methods` to fix docs error --- package.json | 1 + src/http2.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index cfb9ea8..79b8d66 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "uuid": "^9.0.0" }, "devDependencies": { + "@babel/plugin-proposal-private-methods": "^7.18.6", "@compodoc/compodoc": "^1.1.9", "@types/execa": "^0.9.0", "@types/extend": "^3.0.1", diff --git a/src/http2.ts b/src/http2.ts index d351ae1..e5802ff 100644 --- a/src/http2.ts +++ b/src/http2.ts @@ -38,7 +38,7 @@ const DEBUG = !!process.env.HTTP2_DEBUG; */ export interface SessionData { session: http2.ClientHttp2Session; - timeoutHandle?: NodeJS.Timer; + timeoutHandle?: NodeJS.Timeout; } /**