Argument of type '{ protocol: string; hostname: string; port: string; username: string; password: string; }' is not assignable to parameter of type 'string | URL'.
Type '{ protocol: string; hostname: string; port: string; username: string; password: string; }' is missing the following properties from type 'URL': hash, host, href, origin, and 4 more.ts(2345)
Using the very same example code shown in the 6.x usage (but adding the missing comma after the hostname), I keep getting TypeScript errors:
This is the code:
I was on 7.0.0 so I downgraded to 6.2.1 and got the same errors.