Skip to content

Commit 9e0541c

Browse files
authored
Merge pull request #722 from zetashift/add/#634
Add `URLSearchParams` to `BodyInit`
2 parents 4cc245f + 2f4d34e commit 9e0541c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

api-reports/2_12.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -26797,7 +26797,7 @@ intl/NumberFormatOptions[JT] var useGrouping: js.UndefOr[Boolean]
2679726797
intl/NumberFormatOptions[SO] def apply(localeMatcher: js.UndefOr[String]?, style: js.UndefOr[String]?, currency: js.UndefOr[String]?, currencyDisplay: js.UndefOr[String]?, useGrouping: js.UndefOr[Boolean]?, minimumIntegerDigits: js.UndefOr[Double]?, minimumFractionDigits: js.UndefOr[Double]?, maximumFractionDigits: js.UndefOr[Double]?, minimumSignificantDigits: js.UndefOr[Double]?, maximumSignificantDigits: js.UndefOr[Double]?): NumberFormatOptions (@deprecated in 2.0.0)
2679826798
package[SO] type AlgorithmIdentifier = Algorithm | String
2679926799
package[SO] type BigInteger = js.typedarray.Uint8Array
26800-
package[SO] type BodyInit = Blob | BufferSource | FormData | String | ReadableStream[Uint8Array]
26800+
package[SO] type BodyInit = Blob | BufferSource | FormData | String | ReadableStream[Uint8Array] | URLSearchParams
2680126801
package[SO] type BufferSource = ArrayBufferView | ArrayBuffer
2680226802
package[SO] type ByteString = String
2680326803
package[SO] type ClientRect = DOMRect (@deprecated in 2.0.0)

api-reports/2_13.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -26797,7 +26797,7 @@ intl/NumberFormatOptions[JT] var useGrouping: js.UndefOr[Boolean]
2679726797
intl/NumberFormatOptions[SO] def apply(localeMatcher: js.UndefOr[String]?, style: js.UndefOr[String]?, currency: js.UndefOr[String]?, currencyDisplay: js.UndefOr[String]?, useGrouping: js.UndefOr[Boolean]?, minimumIntegerDigits: js.UndefOr[Double]?, minimumFractionDigits: js.UndefOr[Double]?, maximumFractionDigits: js.UndefOr[Double]?, minimumSignificantDigits: js.UndefOr[Double]?, maximumSignificantDigits: js.UndefOr[Double]?): NumberFormatOptions (@deprecated in 2.0.0)
2679826798
package[SO] type AlgorithmIdentifier = Algorithm | String
2679926799
package[SO] type BigInteger = js.typedarray.Uint8Array
26800-
package[SO] type BodyInit = Blob | BufferSource | FormData | String | ReadableStream[Uint8Array]
26800+
package[SO] type BodyInit = Blob | BufferSource | FormData | String | ReadableStream[Uint8Array] | URLSearchParams
2680126801
package[SO] type BufferSource = ArrayBufferView | ArrayBuffer
2680226802
package[SO] type ByteString = String
2680326803
package[SO] type ClientRect = DOMRect (@deprecated in 2.0.0)

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)