Skip to content

Comment on Type-safe enums in JavaScript

Comments

Comments are appreciated. It seems to work like you would expect, but I'd like to know if there's anything I'm missing in particular, or if the whole approach is just completely wrong.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.