From 81842689be2551a35b2f80d2b64b11f166c93b7b Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Sun, 14 Jul 2019 12:05:33 +0300 Subject: [PATCH] fix(typings): allow port to be a string Fixing a regression spotted in pnpm: https://github.com/pnpm/pnpm/pull/1905 The port in the Node.js URL object is a string, so it is more convenient to use string for the port. https://nodejs.org/api/url.html#url_url_port --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 7b9e2b16..d21a974f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -4,7 +4,7 @@ declare module 'https-proxy-agent' { namespace HttpsProxyAgent { interface HttpsProxyAgentOptions { host: string - port: number + port: number | string secureProxy?: boolean headers?: { [key: string]: string