Skip to content

Commit 7e95357

Browse files
committed
add typescript types (TooTallNate#28)
1 parent bfe9ec5 commit 7e95357

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)