When passing a URL object to fetch(), I'm receiving this TypeScript compile time error:
Argument of type 'URL' is not assignable to parameter of type 'RequestInfo'
The fetch() input argument should be of type URL or RequestInfo. I'm passing a URL object so why am I receiving this error?
As you can see, there are no TypeScript errors before compiling.