Skip to content

Commit

Permalink
fix: correct FetchResponse type
Browse files Browse the repository at this point in the history
apparently these are IncomingMessages, not really ServerResponses
  • Loading branch information
dbushong committed Oct 30, 2019
1 parent 92ad166 commit caea42d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/typedefs.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SecureContext } from 'tls';
import { ServerResponse } from 'http';
import { IncomingMessage } from 'http';

type BodyMethods = {
json(): Promise<any>;
Expand All @@ -8,7 +8,7 @@ type BodyMethods = {
stream(): ReadableStream;
};

type FetchResponse = Promise<ServerResponse & BodyMethods> & BodyMethods;
type FetchResponse = Promise<IncomingMessage & BodyMethods> & BodyMethods;

declare class Gofer {
constructor(
Expand Down

0 comments on commit caea42d

Please sign in to comment.