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..fa65a8661d16f2 100644 --- a/types/http-proxy-agent/index.d.ts +++ b/types/http-proxy-agent/index.d.ts @@ -1,14 +1,14 @@ -// 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 +// marikaner // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// import { Agent } from 'http'; import { Url } from 'url'; - declare class HttpProxyAgent extends Agent { constructor(options: string | Url); @@ -16,4 +16,4 @@ declare class HttpProxyAgent extends Agent { secureProxy: boolean; } -export = HttpProxyAgent; +export default HttpProxyAgent;