File tree 2 files changed +23
-0
lines changed
2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ declare module 'https-proxy-agent' {
2
+ import * as https from 'https'
3
+
4
+ namespace HttpsProxyAgent {
5
+ interface HttpsProxyAgentOptions {
6
+ host : string
7
+ port : number
8
+ secureProxy ?: boolean
9
+ headers ?: {
10
+ [ key : string ] : string
11
+ }
12
+ [ key : string ] : any
13
+ }
14
+ }
15
+
16
+ // HttpsProxyAgent doesnt *actually* extend https.Agent, but for my purposes I want it to pretend that it does
17
+ class HttpsProxyAgent extends https . Agent {
18
+ constructor ( opts : HttpsProxyAgent . HttpsProxyAgentOptions )
19
+ }
20
+
21
+ export = HttpsProxyAgent
22
+ }
Original file line number Diff line number Diff line change 3
3
"version" : " 2.2.1" ,
4
4
"description" : " An HTTP(s) proxy `http.Agent` implementation for HTTPS" ,
5
5
"main" : " ./index.js" ,
6
+ "types" : " ./index.d.ts" ,
6
7
"scripts" : {
7
8
"test" : " mocha --reporter spec"
8
9
},
You can’t perform that action at this time.
0 commit comments