mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
13 lines
204 B
TypeScript
13 lines
204 B
TypeScript
import Agent = require('http-proxy-agent');
|
|
|
|
// $ExpectType HttpProxyAgent
|
|
new Agent('url');
|
|
new Agent({});
|
|
new Agent({ host: 'url' });
|
|
|
|
// $ExpectError
|
|
new Agent();
|
|
|
|
// $ExpectError
|
|
new Agent({ a: 1 });
|