(jSGlobalScope: StringAdd).self
(jSGlobalScope: StringFormat).self
(jSGlobalScope: ArrowAssoc[JSGlobalScope]).x
(Since version 2.10.0) Use leftOfArrow
instead
(jSGlobalScope: Ensuring[JSGlobalScope]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
Marks the annotated object as representing the JavaScript global scope.
This is particularly useful to model top-level functions and fields that are in the JavaScript global scope. They can be declared inside an object annotated with
@JSGlobalScope
.Calling JavaScript from Scala.js