Closed
Description
TypeScript Version: 2.3.0
Code
// A *self-contained* demonstration of the problem follows...
const base = new URL('http://foo.com')
new URL('bar.html', base)
Expected behavior:
Should compile
Actual behavior:
[ts]
Argument of type 'URL' is not assignable to parameter of type 'string | undefined'.
Type 'URL' is not assignable to type 'string'.
Reference: https://developer.mozilla.org/en-US/docs/Web/API/URL/URL