objectAnyType extends Type with Product with Serializable
Any type (the top type of this type system).
A variable of this type can contain any value, including undefined
and null and any raw JS value. This type supports a very limited set
of operations, the ones common to all values. Basically only toString(),
equality tests and instance tests.
The type java.lang.Object in the back-end maps to AnyType because it
can hold raw JS values (not only instances of Scala.js classes).
Linear Supertypes
Serializable, java.io.Serializable, Product, Equals, Type, AnyRef, Any
Any type (the top type of this type system). A variable of this type can contain any value, including
undefined
andnull
and any raw JS value. This type supports a very limited set of operations, the ones common to all values. Basically only toString(), equality tests and instance tests. The type java.lang.Object in the back-end maps to AnyType because it can hold raw JS values (not only instances of Scala.js classes).