diff --git a/lib/types/global-agent.d.ts b/lib/types/global-agent.d.ts deleted file mode 100644 index 0d10188b2c9b717f1980cd270320c04757bbf583..0000000000000000000000000000000000000000 --- 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 489bdfd61e0993f8fe03c6c013af606a90948a06..0289807a26550d5356c44879e9f6eb4da57a5128 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 f0c438f80b62a3f7086889fce57a7c7a80709083..f0578ab8a0062f26951509003d4cba70e3dbf86e 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"