title: How to convert all object properties (function) to async functions in flowtype?
body: <p>Given an object type that has functions as values I need to create object types with similar structure but having values as async functions.</p>
  
  <p>Imagine this function</p>
  
  <pre><code>function convert(foo) {
    return async function(...args) {
      return foo(...args)
    }
  }
  </code></pre>
  
  <p>Applied to values of this type</p>
  
  <pre><code>type Source = {
    foo: number =&gt; string,
    bar: string =&gt; number
  }
  </code></pre>
  
  <p>So I get this type</p>
  
  <pre><code>type Result = {
    foo: number =&gt; Promise&lt;string&gt;,
    bar: string =&gt; Promise&lt;number&gt;
  }
  </code></pre>
  
  <p>Is it possible in flow?</p>