title: adding lib to typescript config causes regression in compilation
body: <p>i added</p>
  <pre><code>&quot;lib&quot;: [
        &quot;ES2020.Promise&quot;,
      ],
  </code></pre>
  <p>to my ts config because i needed to use <code>promise.allSettled()</code>, however, this caused a regression to my compile time checks as it's now failing on built in javascript functions like</p>
  <pre><code>Property 'flat' does not exist on type 'ConditionalAttributeEntity[][]'
  const conditionalAttributes = conditionalAttributesUnprocessed.flat();
  
  Parameter 'component' implicitly has an 'any' type.
  .filter(component =&gt; _.has(component, 'componentList'))
  
  </code></pre>
  <p>before these worked fine</p>
  <p>my config looks like this</p>
  <pre><code>   &quot;emitDecoratorMetadata&quot;: true,
      &quot;experimentalDecorators&quot;: true,
      &quot;forceConsistentCasingInFileNames&quot;: true,
      &quot;incremental&quot;: true,
      &quot;module&quot;: &quot;commonjs&quot;,
      &quot;noErrorTruncation&quot;: true,
      &quot;noFallthroughCasesInSwitch&quot;: true,
      &quot;noImplicitReturns&quot;: true,
      &quot;noUnusedLocals&quot;: true,
      &quot;noUnusedParameters&quot;: true,
      &quot;pretty&quot;: true,
      &quot;resolveJsonModule&quot;: true,
      &quot;skipLibCheck&quot;: true,
      &quot;sourceMap&quot;: true,
      &quot;strict&quot;: true,
      &quot;target&quot;: &quot;ES2019&quot;,
      &quot;lib&quot;: [
        &quot;ES2020.Promise&quot;,
      ],
  </code></pre>
  <p>Is there anything i can do to more modularly use <code>promise.allSettled()</code> while keeping compile time checks the same?</p>