Skip to content

Commit

Permalink
[TypeScript] Allow port to be a string (#72)
Browse files Browse the repository at this point in the history
Fixing a regression spotted in pnpm: pnpm/pnpm#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
  • Loading branch information
zkochan authored and TooTallNate committed Oct 4, 2019
1 parent 590bc8b commit 2170151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Expand Up @@ -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
Expand Down

0 comments on commit 2170151

Please sign in to comment.