I don’t understand all these comments. I use TS enums like I use Java enums and I literally never have issues. What are y’all doing with these?
loading story #42770810
loading story #42771648
Same, I have use enum strings for years and never had an issue.
In typescript, some types are values. Typescript treats enums as types, but they're secretly values. Classes are types and values.
loading story #42770707
Yeah, people arguing against enums in this thread are doing a really bad job. I haven't seen a single compelling argument.
loading story #42772449