From 9452694b88a53c56485f33a3d7637d53513f888a Mon Sep 17 00:00:00 2001
From: Jamie Magee <JamieMagee@users.noreply.github.com>
Date: Thu, 30 Jan 2020 07:36:43 +0100
Subject: [PATCH] chore: remove custom global-agent types (#5224)

---
 lib/types/global-agent.d.ts | 17 -----------------
 package.json                |  1 +
 yarn.lock                   |  5 +++++
 3 files changed, 6 insertions(+), 17 deletions(-)
 delete mode 100644 lib/types/global-agent.d.ts

diff --git a/lib/types/global-agent.d.ts b/lib/types/global-agent.d.ts
deleted file mode 100644
index 0d10188b2c..0000000000
--- a/lib/types/global-agent.d.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-declare module 'global-agent' {
-  export interface ProxyAgentConfigurationInputType {
-    environmentVariableNamespace?: string;
-    forceGlobalAgent?: boolean;
-    socketConnectionTimeout?: number;
-  }
-
-  export interface ProxyAgentConfigurationType {
-    readonly HTTP_PROXY: string;
-    readonly HTTPS_PROXY: string;
-    readonly NO_PROXY: string;
-  }
-
-  export function createGlobalProxyAgent(
-    opts: ProxyAgentConfigurationInputType
-  ): ProxyAgentConfigurationType;
-}
diff --git a/package.json b/package.json
index 489bdfd61e..0289807a26 100644
--- a/package.json
+++ b/package.json
@@ -177,6 +177,7 @@
     "@types/convert-hrtime": "2.0.0",
     "@types/fs-extra": "8.0.1",
     "@types/github-url-from-git": "1.5.0",
+    "@types/global-agent": "2.1.0",
     "@types/got": "9.6.9",
     "@types/ini": "1.3.30",
     "@types/jest": "24.9.1",
diff --git a/yarn.lock b/yarn.lock
index f0c438f80b..f0578ab8a0 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1260,6 +1260,11 @@
     "@types/minimatch" "*"
     "@types/node" "*"
 
+"@types/global-agent@2.1.0":
+  version "2.1.0"
+  resolved "https://registry.yarnpkg.com/@types/global-agent/-/global-agent-2.1.0.tgz#1becbcb067c9c7a8d2cd70b786ca1d062538e299"
+  integrity sha512-xBOerse4Agekl7VZJclA9bfuA9aa3u9T24TDkBiMQrZgu4qe5HMBPzVGzAt2k4dx/v3uIFI6CzG0Z9X894LHrg==
+
 "@types/got@9.6.9":
   version "9.6.9"
   resolved "https://registry.yarnpkg.com/@types/got/-/got-9.6.9.tgz#b3192188b96c871b9c67dc80d1b0336441432a38"
-- 
GitLab