Add `URLSearchParams` to `BodyInit` for fetch
armanbilge opened this issue · 3 comments
armanbilge commented
zetashift commented
Shouldn't the scaladoc comment for BodyInit point to https://fetch.spec.whatwg.org/#bodyinit-unions ? At the very least the current link links to the ToC of the spec hehe.
Also is this issue really as easy as just adding URLSearchParams
to the union?
armanbilge commented
Thanks, that seems better :)
Also is this issue really as easy as just adding
URLSearchParams
to the union?
Famous last words 😝 it should be, but I haven't checked if URLSearchParams
exists at least 😂
zetashift commented
Yea if it didn't exist I'd be worried,
but:
https://github.com/scala-js/scala-js-dom/blob/51a807cc04ea134ece030d6d4005a8ce30c1de99/dom/src/main/scala/org/scalajs/dom/URLSearchParams.scala