A better way for TypeScript Enum
A better way to define enums in Typescript In this way it is much easier to provide an enum including a potential mapping to a different value e.g. a display value. This solution is usually considered being better, as long as enums aren’t supported by JavaScript natively. Links