You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It could be nice to support decorator functions with the defclass syntax for fields, methods and classes.
Ideally, there would be some way to interop with JS decorator functions with the defclass syntax.
Note, it seems that decorators can be implemented in a variety of ways, and I'm not sure if there's a best way to standardise support, so more research may be required.
Summary
defclass
syntax for fields, methods and classes.defclass
syntax.What are decorators?
How are Decorators used in JavaScript?
Decorators are functions that can modify the definition of class (and more) in JS, for example:
Would be roughly de-sugared into:
The text was updated successfully, but these errors were encountered: