I'm using this code:
type Group = {
[key in ROLES]?: string;
};
enum ROLES {
simple = "simple",
admin = "admin",
}
Is there a way to avoid the "repetition" of simple = "simple"/admin = "admin"?
Can we have simply:
enum ROLES {
simple,
admin,
}