title: Promise returned in function argument where a void return was expected
body: <p>I'm working on an Electron application and I want to use async await in an anonymous function in my Main like this:</p>
  <pre><code>process.on(&quot;uncaughtException&quot;, async (error: Error) =&gt; {
    await this.errorHandler(error);
  });
  </code></pre>
  <p>But this yields the Typescript error</p>
  <blockquote>
  <p>Promise returned in function argument where a void return was
  expected.</p>
  </blockquote>
  <p>I'm using Typescript 3.9.7 and Electron 9.2.0.</p>
  <p>Why doesn't it allow me to use async/await?</p>