Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2361c99

Browse files
committed
add URLSearchParams to BodyInit
1 parent 4cc245f commit 2361c99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dom/src/main/scala/org/scalajs/dom/package.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ package object dom {
3030
/** This type should capture strings consisting only of ASCII chars todo: is there a way to capture this type? */
3131
type ByteString = String
3232

33-
/** defined at [[https://fetch.spec.whatwg.org/#body-mixin ¶6.2 Body mixin]] in whatwg Fetch spec */
33+
/** defined at [[https://fetch.spec.whatwg.org/#bodyinit-unions]] in whatwg Fetch spec */
3434
type BodyInit =
35-
Blob | BufferSource | FormData | String | ReadableStream[Uint8Array] // todo: add URLSearchParams
35+
Blob | BufferSource | FormData | String | ReadableStream[Uint8Array] | URLSearchParams
3636

3737
/** WebIDL sequence<T> is js.Array[T] | JSIterable[T]. However @mseddon knows at least Blink's IDL compiler treats
3838
* these as simply js.Array[T] for now. We keep this type as a reminder to check in more detail

0 commit comments

Comments
 (0)