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

add typescript types (TooTallNate/node-proxy-agent#28) #34

Merged
merged 1 commit into from
Jan 29, 2019
Merged
Show file tree
Hide file tree
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
15 changes: 15 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Agent, AgentOptions } from 'agent-base';

declare module ProxyAgent {
interface ProxyAgent extends Agent {
}
}

declare const proxy: ProxyAgentConstructor;

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

export = proxy;
Loading