scala.scalajs.js.annotation.JSExportTopLevel.scala Maven / Gradle / Ivy
The newest version!
/*
* Scala.js (https://www.scala-js.org/)
*
* Copyright EPFL.
*
* Licensed under Apache License 2.0
* (https://www.apache.org/licenses/LICENSE-2.0).
*
* See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*/
package scala.scalajs.js.annotation
import scala.annotation.meta._
/** Specifies that the given member should be exported to the top level of the module.
*
* @see [[http://www.scala-js.org/doc/export-to-javascript.html Export Scala.js APIs to JavaScript]]
*/
@field @getter @setter
class JSExportTopLevel(name: String) extends scala.annotation.StaticAnnotation {
def this(name: String, moduleID: String) = this(name)
}