From caea42d2cce29ac8396c06308d27ac5c99fdcc96 Mon Sep 17 00:00:00 2001 From: David Bushong Date: Tue, 29 Oct 2019 18:05:30 -0700 Subject: [PATCH] fix: correct FetchResponse type apparently these are IncomingMessages, not really ServerResponses --- lib/typedefs.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/typedefs.d.ts b/lib/typedefs.d.ts index d4973a0..55f7d0e 100644 --- a/lib/typedefs.d.ts +++ b/lib/typedefs.d.ts @@ -1,5 +1,5 @@ import { SecureContext } from 'tls'; -import { ServerResponse } from 'http'; +import { IncomingMessage } from 'http'; type BodyMethods = { json(): Promise; @@ -8,7 +8,7 @@ type BodyMethods = { stream(): ReadableStream; }; -type FetchResponse = Promise & BodyMethods; +type FetchResponse = Promise & BodyMethods; declare class Gofer { constructor(