-
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.
Add TypeScript type definitions (#66)
* Added index.d.ts Based on: #27 (comment) (thank you @yonilerner) * Update package.json
- Loading branch information
1 parent
11bc347
commit c5c4ffc
Showing
2 changed files
with
23 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
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) | ||
} | ||
|
||
export = HttpsProxyAgent | ||
} |
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