Packages

a

react

jsenrich

macro class jsenrich extends Annotation with StaticAnnotation

Build/enhance companion object with various convenience methods.

Convenience methods include:

  1. apply method for properties in the immediate js.Object trait. This will overwrite any existing apply method.
  2. Extensions for changing individual properties: aTrait.withYourPropertyName("blah").
  3. Extension combineWith(that) to shallow combine two objects with that taking precedence.
  4. Extension .duplicate that shallow clones the object using js.Object.assign.

These methods adds/creates new companion object with methods and implicit classes.

WARNING: Does not handle trait parameters yet.

Annotations
@compileTimeOnly("Enable macros -Ymacro-annotations (2.13+) to expand macro annotation")
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. jsenrich
  2. StaticAnnotation
  3. Annotation
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new jsenrich()

Value Members

  1. macro def macroTransform(annottees: Any*): Any