Skip to content

Comment on Show HN: ES7 Decorator library adds types checking, memoization, and more to JSparent

Comments

No these aren't the same as proxies. ES7 has class decorators that can only be used on class methods.

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.

You can also use them on class declarations themselves and object literals - https://github.com/wycats/javascript-decorators#object-liter...

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.