endpoints4s.fetch.TextEncoder.scala Maven / Gradle / Ivy
The newest version!
package endpoints4s.fetch
import scala.scalajs.js
import scala.scalajs.js.annotation.JSGlobal
import scala.scalajs.js.typedarray.Uint8Array
@js.native
@JSGlobal
private[fetch] class TextEncoder(utfLabel: js.UndefOr[String] = js.undefined) extends js.Object {
def encode(str: String): Uint8Array = js.native
}