macro class jsenrich extends Annotation with StaticAnnotation
Build/enhance companion object with various convenience methods.
Convenience methods include:
apply
method for properties in the immediate js.Object trait. This will overwrite any existing apply method.- Extensions for changing individual properties:
aTrait.withYourPropertyName("blah")
. - Extension
combineWith(that)
to shallow combine two objects withthat
taking precedence. - Extension
.duplicate
that shallow clones the object usingjs.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")
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- jsenrich
- StaticAnnotation
- Annotation
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected