Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit 744c565

Browse files
author
exoego
committed
Fix #110: setReadableEncoding is wrong
1 parent ab39221 commit 744c565

File tree

1 file changed

+5
-0
lines changed
  • app/current/src/main/scala/io/scalajs/nodejs/stream

1 file changed

+5
-0
lines changed

app/current/src/main/scala/io/scalajs/nodejs/stream/Stream.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,13 @@ sealed trait IReadable extends LegacyStream {
163163
def readable: Boolean = js.native
164164

165165
@enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs12)
166+
@deprecated("Wrong name. Use readableEncoding", "0.9.1")
167+
@JSName("readableEncoding")
166168
def setReadableEncoding: String = js.native
167169

170+
@enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs12)
171+
def readableEncoding: String = js.native
172+
168173
@enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs12)
169174
def readableEnded: Boolean = js.native
170175

0 commit comments

Comments
 (0)