Hacker GitHub

← All repos

tc39/proposal-enum

View on GitHub ↗ ★ 493 HTML

Proposal for ECMAScript enums

4 mentions on Hacker News by 4 people: 0 stories, 4 comments · first 2020-05-13 · latest 2025-03-02

Mentions per year 4 mentions · busiest year 2020 (2)
20082026
  1. …`as const` from the beginning. Ron Buckton of the TS team is championing an enum proposal for JS: https://github.com/rbuckton/proposal-enum Hopefully that goes somewhere and improves the declaration side of thigns too.
    comment by spankalee · 2025-03-02 · in An ode to TypeScript enums
  2. …be accepted by browsers) rather than trying to "prollyfill" Stage 0 and "Stage Wild" standards. [1] https://github.com/rbuckton/proposal-enum
    comment by WorldMaker · 2023-03-16 · in TypeScript 5.0
  3. …enum that has different semantics to TS enum, and it was created by someone on the TypeScript team: https://github.com/rbuckton/proposal-enum So the const form doesn't really change the hazard.
    comment by robpalmer · 2020-11-11 · in Insights from Adopting TypeScript at Scale
  4. …And a member of the TypeScript team at Microsoft put together a proposal to add enums to JS. https://github.com/rbuckton/proposal-enum Neither one of these seem to be active. What happened? What would it be like to get these landed?
    comment by dfabulich · 2020-05-13 · in Announcing TypeScript 3.9