Hacker GitHub

← All repos

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

Mentions per year 20 mentions · busiest year 2019 (4)
20082026
  1. …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
  2. …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
  3. …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
  4. ▲ 1
    TC39 – decorator before or after export keyword? (300 comments)
    story by hnotterman · 2023-02-25 · 0 comments
  5. …> ..the current decorators proposal, which is a work in progress https://github.com/tc39/proposal-decorators Oh, but I see that the proposal is now at Stage 3, which means the specs and syntax are stable ("completely descri
    comment by lioeters · 2023-02-13 · in <3 Deno
  6. …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/
  7. Here's the actual proposal: https://github.com/tc39/proposal-decorators
    comment by gabrielsroka · 2022-03-29 · in Decorators reach ECMAScript Stage 3
  8. ▲ 1
    TC39 JavaScript Decorators
    story by lastdong · 2022-03-11 · 0 comments
  9. …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.
  10. ▲ 3
    JavaScript decorators proposal (updated version)
    story by bpierre · 2020-09-07 · 0 comments
  11. ▲ 2
    The annotations brigade has taken over the JavaScript
    story by cell9840179419 · 2020-07-02 · 1 comment
  12. …—- 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
  13. …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
  14. …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
  15. …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)…
  16. …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
  17. …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
  18. That's a great one. It's a big part of my TC39 reading: https://github.com/tc39/proposal-decorators#decorators Very exciting.
  19. …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
  20. …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