Closed Rugvip closed 1 year ago
Gonna assume that the test failures are unrelated, let me know if that's not the case
I think they declared types in the global intentionally, because the library can be used as a polyfill.
And... no response.
Fixed in whatwg-node
instead, although it still makes sense to make this change. Gonna close this and leave that for someone else though.
The top-level declarations of
_fetch
etc. pollute the global namespace, potentially causing conflicts with other libraries. This switches the type declarations to access the desired values through theglobal
object instead.As far as I can tell this should not cause any issues, although I'm lacking context on why the types are declared the way they are to begin with.