Y
Hacker News
new
|
ask
|
show
|
jobs
by
piran
4031 days ago
No these aren't the same as proxies. ES7 has class decorators that can only be used on class methods.
1 comments
thomasfoster96
4031 days ago
I know they're not the same, but I'd love to be able to use some of the thins I can use with decorators, but on plain objects.
link
eltaco
4031 days ago
You can also use them on class declarations themselves and object literals -
https://github.com/wycats/javascript-decorators#object-liter...
link