diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index b80e958d2..ec99a23f3 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -16426,6 +16426,27 @@ MutationRecord[JT] def previousSibling: Node MutationRecord[JT] def removedNodes: NodeList[Node] MutationRecord[JT] def target: Node MutationRecord[JT] def `type`: String +NDEFMessage[JC] +NDEFReader[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit +NDEFReader[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit +NDEFReader[JC] def dispatchEvent(evt: Event): Boolean +NDEFReader[JC] var onreading: js.Function1[NDEFReadingEvent, Any] +NDEFReader[JC] var onreadingerror: js.Function1[Event, Any] +NDEFReader[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit +NDEFReader[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit +NDEFReader[JC] def scan(options: NDEFScanOptions?): js.Promise[Any] +NDEFReader[JC] def write(message: NDEFRecord.Data, options: NDEFWriteOptions?): js.Promise[String] +NDEFRecord[JC] var data: NDEFRecord.Data +NDEFRecord[JC] var encoding: js.UndefOr[String] +NDEFRecord[JC] var id: js.UndefOr[String] +NDEFRecord[JC] var lang: js.UndefOr[String] +NDEFRecord[JC] var mediaType: js.UndefOr[String] +NDEFRecord[JC] var recordType: String +NDEFRecord[JC] def toRecords(): js.Array[NDEFRecord] +NDEFRecord[SO] type Data = String | js.typedarray.ArrayBuffer | js.typedarray.DataView | js.Array[NDEFRecord] +NDEFScanOptions[JT] def signal: js.UndefOr[AbortSignal] +NDEFWriteOptions[JT] def overwrite: Boolean +NDEFWriteOptions[JT] def signal: js.UndefOr[AbortSignal] NamedNodeMap[JC] @scala.scalajs.js.annotation.JSBracketAccess def apply(index: Int): Attr NamedNodeMap[JC] def getNamedItem(name: String): Attr NamedNodeMap[JC] def getNamedItemNS(namespaceURI: String, localName: String): Attr diff --git a/dom/src/main/scala/org/scalajs/dom/NDEFReadingEvent.scala b/dom/src/main/scala/org/scalajs/dom/NDEFReadingEvent.scala index 1f8d9fbf2..3bc402a90 100644 --- a/dom/src/main/scala/org/scalajs/dom/NDEFReadingEvent.scala +++ b/dom/src/main/scala/org/scalajs/dom/NDEFReadingEvent.scala @@ -1,7 +1,6 @@ package org.scalajs.dom import scala.scalajs.js -import scala.scalajs.js.| /** The NDEFReadingEvent interface of the Web NFC API represents events dispatched on new NFC readings obtained by * NDEFReader. @@ -18,6 +17,6 @@ trait NDEFReadingEvent extends Event { /** Returns the serial number of the device, which is used for anti-collision and identification, or an empty string * if no serial number is available. */ - var serialNumber: String | "" = js.native + var serialNumber: String = js.native } diff --git a/dom/src/main/scala/org/scalajs/dom/NDEFRecord.scala b/dom/src/main/scala/org/scalajs/dom/NDEFRecord.scala index 10949f005..49a22ab74 100644 --- a/dom/src/main/scala/org/scalajs/dom/NDEFRecord.scala +++ b/dom/src/main/scala/org/scalajs/dom/NDEFRecord.scala @@ -1,8 +1,8 @@ package org.scalajs.dom import scala.scalajs.js -import scala.scalajs.js.| import scala.scalajs.js.annotation.JSGlobal +import scala.scalajs.js.| /** The [[NDEFRecord]] interface of the Web NFC API provides data that can be read from, or written to, compatible NFC * devices, e.g. NFC tags supporting NDEF.