Bit of an advanced type that I'm working on at the moment that involves template literals and some mapped types. My ultimate goal is to dynamically produce output functions with names based on the combination of two objects.
Example in link below.
While I'm able to output the object with the keys that I want, the values are a union of all possible values within FunctionMap[keyof FunctionMap]. I've tried using Function directly, but that doesn't seem to work like I expect it to.
Some background: I've tried a few ways to get what I want, including using conditional types and overloads, but I feel like this might be the best option for DX + readability for what I'm using it for.
Glad to answer any other questions you might have.