Typeclass for converting between Scala.js and native JavaScript.
- Type Params
- A
the type to convert
- Companion
- object
Value members
Abstract methods
Extensions
Extensions
Convert type A to a JSON string <br> Any RuntimeException subclass may be thrown if conversion fails.
Convert type A to a JSON string <br> Any RuntimeException subclass may be thrown if conversion fails.
Convert a Scala.js type to native JavaScript.
<br>
This is an extension method, so it's available on all types
that derive NativeConverter
. To use for other types, like Int, summon
a NativeConverter and use: NativeConverter[Int].toNative(123)
<br>
Any RuntimeException subclass may be thrown if conversion fails.
Convert a Scala.js type to native JavaScript.
<br>
This is an extension method, so it's available on all types
that derive NativeConverter
. To use for other types, like Int, summon
a NativeConverter and use: NativeConverter[Int].toNative(123)
<br>
Any RuntimeException subclass may be thrown if conversion fails.