Typescript : How do I only type the value and let typescript infer the key of an object?
I have an object with string as keys. But, I don’t want it to be string. I want the key strings to be that exact value of the object. I have to type the value of that object as well to follow certain rules. Here is an example,