Global

final case class Global(globalRef: String, path: List[String]) extends JSNativeLoadSpec

Load from the global scope.

The globalRef is the name of a global variable (found in the global scope). It must be valid according to JSGlobalRef.isValidJSGlobalRefName.

The path is a series of nested property names starting from that variable.

The path can be empty, in which case this denotes the specified global variable itself.

Examples:

// Foo
Global("Foo", Nil)

// cp.Vect
Global("cp", List("Vect"))
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Inherited methods

Inherited from:
Product