I would like to use enum keys as keys in another object, but I want them to be lowercase. I tried bunch of ways to solve it, however I can't find a solution to this problem. Is there a way to tell Typescript that the enum keys are only strings and they will never be numbers?
Consider this:
enum Error {
SUCCESS = "Success",
ERROR = "Error",
}
type ErrorKeys = Lowercase<keyof Error> // type number is not assignable to string