Is something like the following possible?
type test = <T extends string>(key: T, object: { [`${T}`]: number }) => void
^^^^^^^^
I know we can set type literal values using that syntax, but I've played around and don't seem to be able to do it with keys.
However, logically, I feel like it should be possible given mapped keys using as is possible...
Anybody have any insight into this?