4 ms·
No these aren't the same as proxies. ES7 has class decorators that can only be used on class methods.
by piran 11y ago
No these aren't the same as proxies. ES7 has class decorators that can only be used on class methods.
- thomasfoster96 11y agoI 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.
- eltaco 11y agoYou can also use them on class declarations themselves and object literals - https://github.com/wycats/javascript-decorators#object-literal-method-declaration https://github.com/wycats/javascript-decorators#object-liter...