From dce1453732553d991ac910e3a93038f7331c8ab9 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 27 Jan 2020 09:02:41 -0500 Subject: [PATCH] fix HttpsProxyAgent typings --- src/globals.d.ts | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/globals.d.ts b/src/globals.d.ts index 1da4c789368..8116ab173f0 100644 --- a/src/globals.d.ts +++ b/src/globals.d.ts @@ -1,28 +1,3 @@ declare function escape(s: string): string; declare function unescape(s: string): string; declare module 'duo_web_sdk'; - -// From: https://github.com/TooTallNate/node-https-proxy-agent/issues/27 -declare module 'https-proxy-agent' { - import * as https from 'https' - - namespace HttpsProxyAgent { - interface HttpsProxyAgentOptions { - host: string - port: number - secureProxy?: boolean - headers?: { - [key: string]: string - } - [key: string]: any - } - } - - // HttpsProxyAgent doesnt *actually* extend https.Agent, but for my purposes I want it to pretend that it does - class HttpsProxyAgent extends https.Agent { - constructor(opts: string) - constructor(opts: HttpsProxyAgent.HttpsProxyAgentOptions) - } - - export = HttpsProxyAgent -}