I think enums are on their way out, and erasable syntax is one of the main reasons.
https://dev.to/ivanzm123/dont-use-enums-in-typescript-they-a...
They added an optional flag to disable enums (and a few other features) in 5.8
https://www.totaltypescript.com/erasable-syntax-only