Skip to content

Commit e33e101

Browse files
committed
Change the result type of ReadableStream#pipeTo to js.Promise[Unit]
According to the whatwg spec, it should return a Promise<undefined>.
1 parent 84d5ab1 commit e33e101

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ trait ReadableStream[+T] extends js.Object {
7575
*
7676
* //todo: determine the type of options
7777
*/
78-
def pipeTo(dest: WriteableStream[T], options: Any = js.native): Unit = js.native
78+
def pipeTo(dest: WriteableStream[T], options: Any = js.native): js.Promise[Unit] = js.native
7979

8080
/** See [[https://streams.spec.whatwg.org/#rs-tee ¶3.2.4.6. tee()]] of whatwg streams spec.
8181
*

0 commit comments

Comments
 (0)