Получите ключ из TypeScript Enum
let enums = Object.keys(SomeEnum).filter(x => x === yourValue));
Lazy Lizard
let enums = Object.keys(SomeEnum).filter(x => x === yourValue));
let enums = Object.keys(SomeEnum).filter(x => !(parseInt(x) >= 0));
console.log("Enums", enums); //Enums: A, B, C, D
enum Status{
Active = 'Active',
Inactive = 'Inactive'
}
let status = STATUS.Active
console.log(status)
output: "Active"