Skip to content

Commit

Permalink
[types] update ProxyAgent Options (timeout) (nodejs#1801)
Browse files Browse the repository at this point in the history
  • Loading branch information
sosoba authored and anonrig committed Apr 4, 2023
1 parent 8148ff8 commit 9807db1
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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 9807db1

Please sign in to comment.