mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
fix HttpsProxyAgent typings
This commit is contained in:
25
src/globals.d.ts
vendored
25
src/globals.d.ts
vendored
@@ -1,28 +1,3 @@
|
|||||||
declare function escape(s: string): string;
|
declare function escape(s: string): string;
|
||||||
declare function unescape(s: string): string;
|
declare function unescape(s: string): string;
|
||||||
declare module 'duo_web_sdk';
|
declare module 'duo_web_sdk';
|
||||||
|
|
||||||
// From: https://github.com/TooTallNate/node-https-proxy-agent/issues/27
|
|
||||||
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: string)
|
|
||||||
constructor(opts: HttpsProxyAgent.HttpsProxyAgentOptions)
|
|
||||||
}
|
|
||||||
|
|
||||||
export = HttpsProxyAgent
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user