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

Commit 199f29f

Browse files
jbarrusTooTallNate
authored andcommitted
Add TypeScript types (#34)
Closes #28.
1 parent bfe9ec5 commit 199f29f

File tree

3 files changed

+860
-0
lines changed

3 files changed

+860
-0
lines changed

index.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Agent, AgentOptions } from 'agent-base';
2+
3+
declare module ProxyAgent {
4+
interface ProxyAgent extends Agent {
5+
}
6+
}
7+
8+
declare const proxy: ProxyAgentConstructor;
9+
10+
interface ProxyAgentConstructor {
11+
(options: AgentOptions | string): ProxyAgent.ProxyAgent;
12+
new (options: AgentOptions | string): ProxyAgent.ProxyAgent;
13+
}
14+
15+
export = proxy;

0 commit comments

Comments
 (0)