tc39/proposal-decorators
View on GitHub ↗ ★ 2,975
Decorators for ES6 classes
20 mentions on Hacker News by 20 people: 4 stories, 16 comments · first 2016-07-11 · latest 2025-05-16
20082026
-
…from using an experimental variant of decorators, such as the one provided by TypeScript. [2] [1] https://github.com/tc39/proposal-decorators [2] https://github.com/angular/angular/issues/48096
comment by koito17 · 2025-05-16 · in Teal – A statically-typed dialect of Lua -
…but that isn't specific to svelte. These aren't TS decorators, they're ecmascript decorators ( https://github.com/tc39/proposal-decorators ) which are at stage 3 and being adopted by JS runtimes. Under the hood the class is just creating a…
comment by _benton · 2025-03-10 · in Svelte5: A Less Favorable Vue3 -
…and their members in a reusable way. huh. i thought this was a bit early to do this but i checked ( https://github.com/tc39/proposal-decorators ) and looks like they've moved to stage 3. curious how this is going to change library/api…
comment by swyx · 2023-03-16 · in TypeScript 5.0 -
▲ 1
TC39 – decorator before or after export keyword? (300 comments)story by hnotterman · 2023-02-25 · 0 comments
-
…is at stage 3[1], which means it's likely to land. Unfortunately, there is no set timeline. - [0] https://github.com/tc39/proposal-decorators - [1] https://tc39.es/process-document/
comment by johnhenry · 2022-05-22 · in Show HN: Remult – a CRUD framework for full-stack TypeScript -
Here's the actual proposal: https://github.com/tc39/proposal-decorators
comment by gabrielsroka · 2022-03-29 · in Decorators reach ECMAScript Stage 3 -
▲ 1
TC39 JavaScript Decoratorsstory by lastdong · 2022-03-11 · 0 comments
-
…seems like the proposal may move towards stage 3 soon - another round of review is going on here: https://github.com/tc39/proposal-decorators/issues/442 So, beware libraries or frameworks that rely on this toolset.
comment by jitl · 2022-02-16 · in Deep introduction to class decorators in TypeScript -
▲ 3
JavaScript decorators proposal (updated version)story by bpierre · 2020-09-07 · 0 comments
-
▲ 2
The annotations brigade has taken over the JavaScriptstory by cell9840179419 · 2020-07-02 · 1 comment
-
…—- seemingly a solved problem in Babel or TS but apparently very hard to implement as a standard: https://github.com/tc39/proposal-decorators I’m beginning to think JSX will ship in browsers before decorators do ;-) That said if there’s…
comment by lstamour · 2020-05-30 · in ECMAScript 4: The Missing Version -
…only implements JS features, refer the linked pipeline issue, locked as "waiting for TC39." [1] https://github.com/tc39/proposal-decorators
comment by paulddraper · 2019-11-06 · in TypeScript 3.7 -
…are already many: https://www.npmjs.com/search?q=mutex You could even have a method decorator ( https://github.com/tc39/proposal-decorators ) that emulates Java's "synchronized" keyword.
comment by tlrobinson · 2019-09-25 · in V8 adds support for top-level await -
…down from what I understand). I also hope they update their decorator support to be in line with https://github.com/tc39/proposal-decorators I know its stage 2 (and it was stage 3, I think) but I think the reasoning behind the major(ish)…
comment by no_wizard · 2019-09-13 · in TypeScript 3.7: The Biggest Features and How to Use Them -
…this binding problem that React causes lies in the decorators proposal (currently at stage 2). https://github.com/tc39/proposal-decorators/blob/master/boun... is all about a @bound decorator. * Just be careful with adding event listeners,…
comment by chrismorgan · 2019-01-07 · in ES6 Classes -
…in the ES7 (ES2016) spec. However, there is a proposal for decorators that it is not finalized yet. https://github.com/tc39/proposal-decorators
comment by styfle · 2018-10-26 · in Introducing Hooks -
That's a great one. It's a big part of my TC39 reading: https://github.com/tc39/proposal-decorators#decorators Very exciting.
comment by westbrook · 2018-01-29 · in Polymer 2.4: Paving the way for 3.0 and TypeScript support -
…of you who are saying that TypeScript is a superset of ES6. Stop! ES6 does not have decorators. See https://github.com/tc39/proposal-decorators . Almost all Angular2 projects, that claim to be using ES6, are in fact using ES6 + Babel…
comment by valera_rozuvan · 2016-10-28 · in Angular 2 docs for ES6/7 -
…which have changed a lot in how they're defined (the latest I can find is the actual spec changes: https://github.com/tc39/proposal-decorators/commit/c32ea1815... ) Even so, I've been pretty impressed with the TypeScript teams ability to…
comment by spankalee · 2016-07-11 · in Announcing TypeScript 2.0 Beta