mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Expose properties of HttpProxyAgent * Use 4 spaces over tabs * Remove options & timeout properties
16 lines
253 B
TypeScript
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 });
|