Is there a way to obtain a union type from a typescript string enum?
enum MyEnum {
A = 'a', // The values are different from the keys, so keyof will not provide a solution.
B = 'b',
}
When working with an enum type like the one shown above, how can one derive the union type "a" | "b" ?