DEV Community

Discussion on: Should I write my own lib for a work project?

 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

decorators just reached Stage 3

Yea, I already saw that the other day. They had to get rid of the whole metainformation thing and put that into a different proposal, but tbh. that's probably for the best. And from the transcript of the presentation, it seems like there's going to be a bit more feedback from the browser side in the future as well. Who knows, a first implementation in chrome might be right around the corner :D

Thread Thread
 
eshimischi profile image
eshimischi

Use Typescript if you want to work with decorators already

Thread Thread
 
lexlohr profile image
Alex Lohr

There is also a babel plugin if you don't want to use TS for whatever reasons.

In any case, decorators are just semantic sugar around the wrapper pattern.