I feel like if you're going to use Typescript, you should accept that you're really just using Javascript with extra steps. If you want to use a language with enums, use one - there are many - but none of them are Javascript.
...I think that's the point of Typescript, no? Being able to write in almost-Javascript with one extra step (that most IDEs take care of automatically anyway) is still nicer than having to learn an entirely different language and toolchain that then compiles down to JS in the end.
For web dev, having a single language everywhere is really nice.
For web dev, having a single language everywhere is really nice.