DefinitelyTyped/types/http-proxy-agent/http-proxy-agent-tests.ts
Ste Prescott 83b0f8edf0 Expose properties of HttpProxyAgent (#29745)
* Expose properties of HttpProxyAgent

* Use 4 spaces over tabs

* Remove options & timeout properties
2018-10-17 08:53:06 -07:00

16 lines
253 B
TypeScript

import Agent = require('http-proxy-agent');
// $ExpectType HttpProxyAgent
new Agent('url');
new Agent({});
new Agent({ host: 'url' });
new Agent({}).proxy;
new Agent({}).secureProxy;
// $ExpectError
new Agent();
// $ExpectError
new Agent({ a: 1 });