UNPKG

800 BTypeScriptView Raw
1// Type definitions for forever-agent 0.6
2// Project: https://github.com/mikeal/forever-agent
3// Definitions by: Dmitry Guketlev <https://github.com/yavanosta>
4// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
6/// <reference types="node" />
7
8import { Agent as HttpAgent, AgentOptions as HttpAgentOptions } from "http";
9
10export = ForeverAgentModule;
11
12interface ForeverAgentOptions extends HttpAgentOptions {
13 minSockets?: number | undefined;
14}
15
16declare class ForeverAgent extends HttpAgent {
17 constructor(options?: ForeverAgentOptions);
18
19 static defaultMinSockets: number;
20}
21
22declare class ForeverAgentSSL extends ForeverAgent {
23 constructor(options?: ForeverAgentOptions);
24}
25
26declare const ForeverAgentModule: typeof ForeverAgent & {
27 SSL: typeof ForeverAgentSSL,
28};