There is a list of keys can be enum, array anything like keys = ["x","y","z"]
Need to implement an interface which can have key from this array
something like:
interface Points {
[index: keys]: string
}
But this doesn't work as index can only be string or number.
What is better way to achieve this?