• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1declare module 'https-proxy-agent' {
2	import * as https from 'https';
3
4	namespace HttpsProxyAgent {
5		interface HttpsProxyAgentOptions {
6			host: string;
7			port: number | string;
8			secureProxy?: boolean;
9			headers?: {
10				[key: string]: string;
11			};
12			[key: string]: any;
13		}
14	}
15
16	// HttpsProxyAgent doesnt *actually* extend https.Agent, but for my purposes I want it to pretend that it does
17	class HttpsProxyAgent extends https.Agent {
18		constructor(opts: HttpsProxyAgent.HttpsProxyAgentOptions | string);
19	}
20
21	export = HttpsProxyAgent;
22}
23