title: TypeORM throws "Type instantiation is excessively deep and possibly infinite.ts(2589)" error on Repository typing
body: <p>After update to <a href="https://code.visualstudio.com/updates/v1_38#_typescript-36" rel="noreferrer">VSCode August 2019 (version 1.38) and Typescript 3.6</a> i'm getting a lot of <code>Type instantiation is excessively deep and possibly infinite.ts(2589)</code> on <a href="https://typeorm.io/" rel="noreferrer">TypeORM</a> repository initialization.</p>
  
  <pre><code>import { Connection, Repository, Entity, BaseEntity,  createConnection } from 'typeorm';
  
  @Entity()
  class MyEntity extends BaseEntity {
      public id: number;
  }
  
  class Test {
      async test() {
          const connection: Connection = await createConnection();
          const myRepo: Repository&lt;MyEntity&gt; = connection.getRepository(MyEntity); // only here cast the error above
      }
  }
  </code></pre>
  
  <p>How can I ignore or fix them?</p>
  
  <ul>
  <li>VSCode v1.38.0 (user setup) </li>
  <li>Node.js v10.11.0 </li>
  <li>Typescript v3.4.5</li>
  <li>TypeORM v0.2.18</li>
  </ul>
  
  <p>I also noticed that the error is gone if the typing is removed <code>: Repository&lt;MyEntity&gt;</code></p>
  
  <p>There also is the <code>"Excessive stack depth comparing types 'FindConditions&lt;?&gt;' and 'FindConditions&lt;?&gt;'</code> error on the same line.</p>