title: Property 'allSettled' does not exist on type 'PromiseConstructor'.ts(2339)
body: <p>I'm trying to use the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/allSettled" rel="noreferrer"><code>Promise.allSettled</code></a> API with TypeScript. Code here:</p>
  <p><code>server.test.ts</code>:</p>
  <pre class="lang-js prettyprint-override"><code>it('should partial success if QPS &gt; 50', async () =&gt; {
    const requests: any[] = [];
    for (let i = 0; i &lt; 51; i++) {
      requests.push(rp('http://localhost:3000/place'));
    }
    await Promise.allSettled(requests);
    // ...
  });
  </code></pre>
  <p>But TSC throws an error:</p>
  <blockquote>
  <p>Property 'allSettled' does not exist on type 'PromiseConstructor'.ts(2339)</p>
  </blockquote>
  <p>I already added these values to the <code>lib</code> option in <code>tsconfig.json</code>:</p>
  <p><code>tsconfig.json</code>:</p>
  <pre><code>{
    &quot;compilerOptions&quot;: {
      /* Basic Options */
      &quot;target&quot;: &quot;ES2015&quot; /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */,
      &quot;module&quot;: &quot;commonjs&quot; /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
      &quot;lib&quot;: [
        &quot;ES2015&quot;,
        &quot;ES2016&quot;,
        &quot;ES2017&quot;,
        &quot;ES2018&quot;,
        &quot;ES2019&quot;,
        &quot;ES2020&quot;,
        &quot;ESNext&quot;
      ] 
     // ...
  }
  </code></pre>
  <p>TypeScript version: <code>&quot;typescript&quot;: &quot;^3.7.3&quot;</code></p>
  <p>So, how can I solve this? I know I can use an alternative module, but I am curious about working with TypeScript natively.</p>