mirror of
https://github.com/nodejs/node.git
synced 2025-05-19 14:26:17 +00:00

PR-URL: https://github.com/nodejs/node/pull/30533 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
23 lines
545 B
TypeScript
23 lines
545 B
TypeScript
declare module 'https-proxy-agent' {
|
|
import * as https from 'https';
|
|
|
|
namespace HttpsProxyAgent {
|
|
interface HttpsProxyAgentOptions {
|
|
host: string;
|
|
port: number | string;
|
|
secureProxy?: boolean;
|
|
headers?: {
|
|
[key: string]: string;
|
|
};
|
|
[key: string]: any;
|
|
}
|
|
}
|
|
|
|
// HttpsProxyAgent doesnt *actually* extend https.Agent, but for my purposes I want it to pretend that it does
|
|
class HttpsProxyAgent extends https.Agent {
|
|
constructor(opts: HttpsProxyAgent.HttpsProxyAgentOptions | string);
|
|
}
|
|
|
|
export = HttpsProxyAgent;
|
|
}
|