title: How to disable/suppress errors from libraries in TypeScript?
body: <p>I have turned on some compiler switches to report more issues in code (e.g. strict null checks). But I get tens of errors in used libraries, e.g.:</p>
  
  <pre><code>[default] xxx/node_modules/@angular/core/src/util/decorators.d.ts:11:5
      Property 'extends' of type 'Type&lt;any&gt; | undefined' is not assignable to string index type 'Function | any[] | Type&lt;any&gt;'.
  </code></pre>
  
  <p>Is there any way of suppressing/muting/disabling error checking in libraries (e.g. directory <code>node_modules</code>)?</p>
  
  <hr>
  
  <p>It can't be a duplicate of <a href="https://stackoverflow.com/q/38656955/1017211">Allow implicit any only for definition files</a> because my question is much broader. I am not asking how to disable <strong>one</strong> specific check (<code>noImplicitAny</code>) in libraries, but how to disable <strong>all</strong> checks in libraries. However the answer from that question applies to mine as well - <code>"skipLibCheck": true</code> disables all checks in libraries.</p>