Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.

Commit 8e6305a

Browse files
authored
Fix type definitions to account for transparent proxy discovery (#57)
ProxyAgent constructor can be invoked without a parameter. In that case, the proxy uri is retrieved from environment variables. Relevant: - https://github.com/TooTallNate/node-proxy-agent/blob/master/test/test.js#L166-L214 - #56
1 parent 9963359 commit 8e6305a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ declare module ProxyAgent {
88
declare const proxy: ProxyAgentConstructor;
99

1010
interface ProxyAgentConstructor {
11-
(options: AgentOptions | string): ProxyAgent.ProxyAgent;
12-
new (options: AgentOptions | string): ProxyAgent.ProxyAgent;
11+
(options?: AgentOptions | string): ProxyAgent.ProxyAgent;
12+
new (options?: AgentOptions | string): ProxyAgent.ProxyAgent;
1313
}
1414

15-
export = proxy;
15+
export = proxy;

0 commit comments

Comments
 (0)