title: Create object based on types typescript
body: <p>Lest say I have this type</p>
  <pre><code>type foo = {
   go: string;
   start: string;
  }
  </code></pre>
  <p>How can I dynamicaly made a function that will return</p>
  <pre><code>{ go: '', start: '' }
  </code></pre>
  <p>Is there any way on Type Script we could dynamically generate empty object based on solely just type? Or this is impossible because we cant just loop</p>
  <p>I was thinking something like these</p>
  <pre><code>function generate&lt;T&gt;(T)&lt;T&gt;  {
   const obj = {}
   for (const key of keyof T) {
     obj[key] = ''
   }
   return obj
  }
  </code></pre>