(jSExportNamed: StringAdd).self
(jSExportNamed: StringFormat).self
(jSExportNamed: ArrowAssoc[JSExportNamed]).x
(Since version 2.10.0) Use leftOfArrow
instead
(jSExportNamed: Ensuring[JSExportNamed]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
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:
As of Scala.js 0.6.11,
@JSExportNamed
is deprecated without direct replacement (see https://github.com/scala-js/scala-js/issues/2442). You should take a single parameter of a JS type and decompose it yourself. For example, instead ofyou should write:
(Since version 0.6.11)
Export Scala.js APIs to JavaScript