4 ms·
That is a TypeScript decorator[0]. It's not a Real JavaScript Thing™ in the TC-39 sense, but you can use it if you're willing to put up with more build tools.
by nateabele 11y ago
That is a TypeScript decorator[0]. It's not a Real JavaScript Thing™ in the TC-39 sense, but you can use it if you're willing to put up with more build tools.
[0] http://blogs.msdn.com/b/typescript/archive/2015/04/30/announcing-typescript-1-5-beta.aspx http://blogs.msdn.com/b/typescript/archive/2015/04/30/announ...
- atjoslin 11y agoThat's also a Javascript decorator. You can use it with Babel today if you pass in `{stage: 0}`. https://github.com/wycats/javascript-decorators https://github.com/wycats/javascript-decorators http://babeljs.io/docs/usage/experimental/ http://babeljs.io/docs/usage/experimental/
- nateabele 11y agoHuh, wycats finally caved on the syntax, eh? Good to know.
- andrewmcwatters 11y agoThanks for educating me!