scala.scalajs.js.annotation
Exports the given method to JavaScript with named parameters.
It can then be called like this:
obj.foo({ param1: value1 param2: value2 param7: value3 });
Note that named exports don't support overloading. Therefore the following will fail:
class A { @JSExportNamed def a(foo: Int) = foo + 1 @JSExportNamed def a(bar: String) = "Hello " + bar }
Export Scala.js APIs to JavaScript
Exports the given method to JavaScript with named parameters.
It can then be called like this:
Note that named exports don't support overloading. Therefore the following will fail:
Export Scala.js APIs to JavaScript