Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
harg
· 9y ago · 0 comments
What about enums?
https://www.typescriptlang.org/docs/handbook/enums.html
Comments
[–]
johnfn
9y ago
Alright, I'll give you enums. I don't actually use enums because they have been superseded by string union types, which are generally better. (And are just types)
[–]
fknop
9y ago
Enums are really nothing else than a map string/integer.