In my TypeScript code, I have an enum
defined as:
enum RoleTypes {
None,
Admin,
SuperAdmin
}
After running this code snippet:
var roleName = RoleTypes[RoleTypes.SuperAdmin];
I noticed that the variable roleName
holds the value SuperAdmin
.
Is there a way to change it to something custom like 'Super Administrator'
? If so, how can I achieve this?