How do I type a function with input and output objects with the same keys but different value types?
<p>Basically, I have a function that will transform an object into a different object, and it's like a dictionary, but I don't know how to type it.</p>

<pre><code>var myFunctions = {
  a: () =&gt; something1,
  b: () =&gt; something2,
  [...]
}
</code></pre>

<p>gets transformed into</p>

<pre><code>var myObject = {
  a: something1,
  b: something2
  [...]
}
</code></pre>