From 5246af927932a006f49bbb3172fddab5cbc06415 Mon Sep 17 00:00:00 2001 From: Andrew Leedham Date: Tue, 19 Feb 2019 14:11:01 +0000 Subject: [PATCH] fix: HttpAgent export = internal fixes: #73 --- index.d.ts | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/index.d.ts b/index.d.ts index 1d5b6ba..e939889 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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; }