Re:From Rust to TypeScript
by moogly on Saturday September 12, 2020 @05:08PM
(#24455694)
I've done TypeScript for 5-6 years, in up to 100+k loc codebases, and never had a problem with enums, both with tsc and babel (so yeah, `const enum` no worky).
`Object.values(SomeEnum)` is pretty handy, something you can't do with string union types.
`Object.values(SomeEnum)` is pretty handy, something you can't do with string union types.