org.scalajs.core.compiler.JSGlobalAddons
Export in the "normal" way: as an instance member, or at the top-level for naturally top-level things (classes and modules).
Export as a static member of the companion class.
Export at the top-level.