Skip to content

Commit

Permalink
fix: HttpAgent export = internal (#74)
Browse files Browse the repository at this point in the history
closes #73
  • Loading branch information
AndrewLeedham authored and fengmk2 committed Feb 19, 2019
1 parent f3d9c87 commit 56d4a9b
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions index.d.ts
Expand Up @@ -30,21 +30,17 @@ declare module "agentkeepalive" {
socketActiveTTL?: number;
}

class internal extends http.Agent {
export default class HttpAgent extends http.Agent {
constructor(opts?: HttpOptions);
readonly statusChanged: boolean;
createSocket(req: http.IncomingMessage, options: http.RequestOptions, cb: Function): void;
getCurrentStatus(): AgentStatus;
}

namespace internal {
export class HttpsAgent extends https.Agent {
constructor(opts?: HttpsOptions);
readonly statusChanged: boolean;
createSocket(req: http.IncomingMessage, options: https.RequestOptions, cb: Function): void;
getCurrentStatus(): AgentStatus;
}
export class HttpsAgent extends https.Agent {
constructor(opts?: HttpsOptions);
readonly statusChanged: boolean;
createSocket(req: http.IncomingMessage, options: https.RequestOptions, cb: Function): void;
getCurrentStatus(): AgentStatus;
}

export = internal;
}

0 comments on commit 56d4a9b

Please sign in to comment.