File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,15 @@ expectAssignable<ProxyAgent>(
16
16
ca : [ '' ] ,
17
17
key : '' ,
18
18
cert : '' ,
19
- servername : ''
19
+ servername : '' ,
20
+ timeout : 1
20
21
} ,
21
22
proxyTls : {
22
23
ca : [ '' ] ,
23
24
key : '' ,
24
25
cert : '' ,
25
- servername : ''
26
+ servername : '' ,
27
+ timeout : 1
26
28
}
27
29
} )
28
30
)
Original file line number Diff line number Diff line change 1
- import { TlsOptions } from 'tls'
2
1
import Agent from './agent'
2
+ import buildConnector from './connector' ;
3
3
import Dispatcher from './dispatcher'
4
4
5
5
export default ProxyAgent
@@ -19,7 +19,7 @@ declare namespace ProxyAgent {
19
19
*/
20
20
auth ?: string ;
21
21
token ?: string ;
22
- requestTls ?: TlsOptions & { servername ?: string } ;
23
- proxyTls ?: TlsOptions & { servername ?: string } ;
22
+ requestTls ?: buildConnector . BuildOptions ;
23
+ proxyTls ?: buildConnector . BuildOptions ;
24
24
}
25
25
}
You can’t perform that action at this time.
0 commit comments