Skip to content

Commit

Permalink
Update typings
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyissillyyy committed Apr 4, 2021
1 parent 7d68162 commit 7c03bc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-superfetch",
"version": "0.2.0",
"version": "0.2.1",
"description": "A wrapper for node-fetch that makes it appear like superagent.",
"main": "index.js",
"typings": "typings/index.d.ts",
Expand Down
7 changes: 4 additions & 3 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ interface RequestOptions {
body?: RequestBody;
redirects?: number;
agent?: Agent;
noResultData?: Boolean
}

type ResponseBody = object | string | Buffer;
Expand All @@ -20,9 +21,9 @@ interface Response {
headers: KVObject;
url: string;
ok: boolean;
raw: Buffer;
text: string;
body: ResponseBody;
raw: Buffer | null;
text: string | null;
body: ResponseBody | null;
}

type StaticRequest = (url: string, options?: RequestOptions) => Request;
Expand Down

0 comments on commit 7c03bc3

Please sign in to comment.