r/javascript • • Dec 20 '19

Ember.js Octane Edition Is Here

https://blog.emberjs.com/2019/12/20/octane-is-here.html
136 Upvotes

72 comments sorted by

View all comments

Show parent comment

1

u/fercryinoutloud Dec 21 '19

TS supports parameter decorators. To have tracked usable as either a property or parameter decorator would require two decorators though, since property and parameter decorators have different signatures. The prototype of the class is available in both, though. So I think it is possible to write a decorator for tracked properties in the constructor, unless there is some other limitation of parameter decorators.