From 39f83b6dad77acf9814df6d482a1a0b76732b0a4 Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Tue, 11 Oct 2022 20:32:44 -0700 Subject: [PATCH] Improve TypeScript 4.9 compatibility (#2163) --- source/core/timed-out.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/timed-out.ts b/source/core/timed-out.ts index 77f175647..079219358 100644 --- a/source/core/timed-out.ts +++ b/source/core/timed-out.ts @@ -188,6 +188,6 @@ export default function timedOut(request: ClientRequest, delays: Delays, options declare module 'http' { // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- This has to be an `interface` to be able to be merged. interface ClientRequest { - [reentry]: boolean; + [reentry]?: boolean; } }