diff --git a/types/http-proxy-agent/http-proxy-agent-tests.ts b/types/http-proxy-agent/http-proxy-agent-tests.ts index f730cd1bde..2158a9129f 100644 --- a/types/http-proxy-agent/http-proxy-agent-tests.ts +++ b/types/http-proxy-agent/http-proxy-agent-tests.ts @@ -5,6 +5,9 @@ new Agent('url'); new Agent({}); new Agent({ host: 'url' }); +new Agent({}).proxy; +new Agent({}).secureProxy; + // $ExpectError new Agent(); diff --git a/types/http-proxy-agent/index.d.ts b/types/http-proxy-agent/index.d.ts index 015508b5d1..b518fddf0c 100644 --- a/types/http-proxy-agent/index.d.ts +++ b/types/http-proxy-agent/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for http-proxy-agent 2.0 // Project: https://github.com/TooTallNate/node-http-proxy-agent // Definitions by: mrmlnc +// steprescott // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -10,6 +11,9 @@ import { Url } from 'url'; declare class HttpProxyAgent extends Agent { constructor(options: string | Url); + + proxy: Url; + secureProxy: boolean; } export = HttpProxyAgent;