diff --git a/package.json b/package.json index fd6537f..50c1bf1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-superfetch", - "version": "0.1.7", + "version": "0.1.8", "description": "A wrapper for node-fetch that makes it appear like superagent.", "main": "index.js", "typings": "typings/index.d.ts", @@ -35,9 +35,11 @@ "node-fetch": "^2.2.0" }, "devDependencies": { + "@types/node": "^10.11.3", "eslint": "^5.6.1", "eslint-config-amber": "^1.1.0", - "eslint-plugin-json": "^1.2.1" + "eslint-plugin-json": "^1.2.1", + "typescript": "^3.1.1" }, "eslintConfig": { "extends": "amber", diff --git a/typings/index.d.ts b/typings/index.d.ts index c1a9276..cae85a7 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -77,6 +77,7 @@ declare class Request extends Promise { public send(body: RequestBody, raw?: boolean): this; public redirects(amount: number): this; + public agent(agent: Agent): this; protected _request(): Promise; }