-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eecea74
commit 4296770
Showing
3 changed files
with
569 additions
and
538 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
declare module 'https-proxy-agent' { | ||
import * as https from 'https' | ||
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) | ||
} | ||
namespace HttpsProxyAgent { | ||
interface HttpsProxyAgentOptions { | ||
host: string; | ||
port: number | string; | ||
secureProxy?: boolean; | ||
headers?: { | ||
[key: string]: string; | ||
}; | ||
[key: string]: any; | ||
} | ||
} | ||
|
||
export = HttpsProxyAgent | ||
// 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; | ||
} |
Oops, something went wrong.