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

Fix type definitions to account for transparent proxy discovery #57

Merged
merged 1 commit into from
Jan 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ declare module ProxyAgent {
declare const proxy: ProxyAgentConstructor;

interface ProxyAgentConstructor {
(options: AgentOptions | string): ProxyAgent.ProxyAgent;
new (options: AgentOptions | string): ProxyAgent.ProxyAgent;
(options?: AgentOptions | string): ProxyAgent.ProxyAgent;
new (options?: AgentOptions | string): ProxyAgent.ProxyAgent;
}

export = proxy;
export = proxy;