Holen Sie sich den Schlüssel des Enum -Typscripts
let enums = Object.keys(SomeEnum).filter(x => x === yourValue));
Lazy Lizard
let enums = Object.keys(SomeEnum).filter(x => x === yourValue));
enum Status{
Active = 'Active',
Inactive = 'Inactive'
}
let status = STATUS.Active
console.log(status)
output: "Active"