From 227354ac38fbe14ef0ba81cf42b1e6b7e22c1bf7 Mon Sep 17 00:00:00 2001 From: Marika Marszalkowski Date: Fri, 15 Nov 2019 16:45:12 +0530 Subject: [PATCH 1/3] Modernize types --- types/http-proxy-agent/http-proxy-agent-tests.ts | 2 +- types/http-proxy-agent/index.d.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/types/http-proxy-agent/http-proxy-agent-tests.ts b/types/http-proxy-agent/http-proxy-agent-tests.ts index 2158a9129f712c..ea957ec6d09414 100644 --- a/types/http-proxy-agent/http-proxy-agent-tests.ts +++ b/types/http-proxy-agent/http-proxy-agent-tests.ts @@ -1,4 +1,4 @@ -import Agent = require('http-proxy-agent'); +import Agent from 'http-proxy-agent'; // $ExpectType HttpProxyAgent new Agent('url'); diff --git a/types/http-proxy-agent/index.d.ts b/types/http-proxy-agent/index.d.ts index b518fddf0c0a21..358cc5a4f14896 100644 --- a/types/http-proxy-agent/index.d.ts +++ b/types/http-proxy-agent/index.d.ts @@ -8,7 +8,6 @@ import { Agent } from 'http'; import { Url } from 'url'; - declare class HttpProxyAgent extends Agent { constructor(options: string | Url); @@ -16,4 +15,4 @@ declare class HttpProxyAgent extends Agent { secureProxy: boolean; } -export = HttpProxyAgent; +export default HttpProxyAgent; From 839d1d1db9144c848961591ae757744cea881d5e Mon Sep 17 00:00:00 2001 From: Marika Marszalkowski Date: Tue, 19 Nov 2019 11:29:46 +0100 Subject: [PATCH 2/3] Add author --- types/http-proxy-agent/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/http-proxy-agent/index.d.ts b/types/http-proxy-agent/index.d.ts index 358cc5a4f14896..3442f0032ceabc 100644 --- a/types/http-proxy-agent/index.d.ts +++ b/types/http-proxy-agent/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/TooTallNate/node-http-proxy-agent // Definitions by: mrmlnc // steprescott +// marikaner // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// From 4bd2e581bdea833fcc0ab1cd2c7eca3b1577f875 Mon Sep 17 00:00:00 2001 From: Marika Marszalkowski Date: Tue, 19 Nov 2019 12:43:48 +0100 Subject: [PATCH 3/3] Add version --- types/http-proxy-agent/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/http-proxy-agent/index.d.ts b/types/http-proxy-agent/index.d.ts index 3442f0032ceabc..fa65a8661d16f2 100644 --- a/types/http-proxy-agent/index.d.ts +++ b/types/http-proxy-agent/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for http-proxy-agent 2.0 +// Type definitions for http-proxy-agent 2.1 // Project: https://github.com/TooTallNate/node-http-proxy-agent // Definitions by: mrmlnc // steprescott