Skip to content

Commit 2170151

Browse files
zkochanTooTallNate
authored andcommitted
[TypeScript] Allow port to be a string (#72)
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
1 parent 590bc8b commit 2170151

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ declare module 'https-proxy-agent' {
44
namespace HttpsProxyAgent {
55
interface HttpsProxyAgentOptions {
66
host: string
7-
port: number
7+
port: number | string
88
secureProxy?: boolean
99
headers?: {
1010
[key: string]: string

0 commit comments

Comments
 (0)