macro classJSOptionsObject extends Annotation with StaticAnnotation
This macro annotation transforms a case class into a trait extending js.Object
and a companion object with an apply() method. This allows easy definition
of JavaScript "confguration" objects, where some options are required, but ohters are optional.
This macro annotation transforms a case class into a trait extending js.Object and a companion object with an apply() method. This allows easy definition of JavaScript "confguration" objects, where some options are required, but ohters are optional.
is transformed into
Arguments of type scalajs.js.UndefOr will only be defined on the returned object, iff their value is
!= js.undefined