mirror of
https://github.com/nodejs/node.git
synced 2025-05-19 23:36:56 +00:00

PR-URL: https://github.com/nodejs/node/pull/28853 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
23 lines
632 B
TypeScript
23 lines
632 B
TypeScript
declare module 'https-proxy-agent' {
|
|
import * as https from 'https'
|
|
|
|
namespace HttpsProxyAgent {
|
|
interface HttpsProxyAgentOptions {
|
|
host: string
|
|
port: number
|
|
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
|
|
}
|