const assertions work well:
https://devblogs.microsoft.com/typescript/announcing-typescr....
There is an example in the "Objects vs Enums" section of the Enum docs, at the bottom of the page: https://www.typescriptlang.org/docs/handbook/enums.html#obje...