Closed frg-dev closed 3 years ago
I believe URL is not defined as a global unless you are using dom types. https://github.com/Microsoft/TypeScript/issues/10792
URL
As a workaround, adding a d.ts file with the following solves it for now.
d.ts
declare type URL = import('url').URL;
Thanks, a PR would be much appreciated if anyone is interested.
I believe
URL
is not defined as a global unless you are using dom types. https://github.com/Microsoft/TypeScript/issues/10792As a workaround, adding a
d.ts
file with the following solves it for now.