title: Use async await with Array.map
body: <p>Given the following code:</p>
  
  <pre><code>var arr = [1,2,3,4,5];
  
  var results: number[] = await arr.map(async (item): Promise&lt;number&gt; =&gt; {
          await callAsynchronousOperation(item);
          return item + 1;
      });
  </code></pre>
  
  <p>which produces the following error:</p>
  
  <blockquote>
    <p>TS2322: Type 'Promise&lt;number&gt;[]' is not assignable to type 'number[]'.
    Type 'Promise&lt;number&gt; is not assignable to type 'number'.</p>
  </blockquote>
  
  <p>How can I fix it? How can I make <code>async await</code> and <code>Array.map</code> work together?</p>