Skip to content

Commit

Permalink
[types] update ProxyAgent Options (timeout) (#1801)
Browse files Browse the repository at this point in the history
  • Loading branch information
sosoba committed Dec 9, 2022
1 parent 9f6c592 commit f6323f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions test/types/proxy-agent.test-d.ts
Expand Up @@ -16,13 +16,15 @@ expectAssignable<ProxyAgent>(
ca: [''],
key: '',
cert: '',
servername: ''
servername: '',
timeout: 1
},
proxyTls: {
ca: [''],
key: '',
cert: '',
servername: ''
servername: '',
timeout: 1
}
})
)
Expand Down
6 changes: 3 additions & 3 deletions types/proxy-agent.d.ts
@@ -1,5 +1,5 @@
import { TlsOptions } from 'tls'
import Agent from './agent'
import buildConnector from './connector';
import Dispatcher from './dispatcher'

export default ProxyAgent
Expand All @@ -19,7 +19,7 @@ declare namespace ProxyAgent {
*/
auth?: string;
token?: string;
requestTls?: TlsOptions & { servername?: string };
proxyTls?: TlsOptions & { servername?: string };
requestTls?: buildConnector.BuildOptions;
proxyTls?: buildConnector.BuildOptions;
}
}

0 comments on commit f6323f6

Please sign in to comment.