I would like to declare a map member variable in class. What I currently have is the following:
(This compiles)
this.map = new Map <keyof T, T[keyof T]> ()
But I would like to constraint the values in the map to specific type based on the key type. Ultimately what I need is the value type to be T[K]
Class parameterized type should include only the T.
Is this actually even possible?