title: Sudden TypeORM FindConditions type errors
body: <p>After reinstalling node_modules I am suddenly getting a FindOneOptions/ObjectID error in my NestJS service.</p>
  <p>Was building fine minutes ago beforehand.
  Makes me wonder, is this a code err or a typings err?</p>
  <p>Using &quot;@nestjs/typeorm&quot;: &quot;^7.1.5&quot;<br />
  Which seems to be using typeorm 0.2.35:<br />
  Local installed version: 0.2.35.<br />
  Global installed TypeORM version: 0.2.37.</p>
  <p>The actual code</p>
  <pre><code>async getOne(id: number, userId?: string, type?: XPType, currentUser?: User) {
      const options: FindConditions&lt;XP&gt; = {
          id
      };
      userId &amp;&amp; (options.userId = userId);
      type &amp;&amp; (options.type = type);
  
      const post = await XP.findOne(options); // &lt;-- error
      ...
  </code></pre>
  <p>Here is the actual error:</p>
  <pre><code>No overload matches this call.
    Overload 1 of 3, '(this: ObjectType&lt;XP&gt;, id?: string | number | Date | ObjectID, options?: FindOneOptions&lt;XP&gt;): Promise&lt;...&gt;', gave the following error.
      Argument of type 'FindConditions&lt;XP&gt;' is not assignable to parameter of type 'string | number | Date | ObjectID'.
        Type 'FindConditions&lt;XP&gt;' is missing the following properties from type 'ObjectID': generationTime, equals, generate, getTimestamp, toHexString
    Overload 2 of 3, '(this: ObjectType&lt;XP&gt;, options?: FindOneOptions&lt;XP&gt;): Promise&lt;XP&gt;', gave the following error.
      Type 'FindConditions&lt;XP&gt;' has no properties in common with type 'FindOneOptions&lt;XP&gt;'.
    Overload 3 of 3, '(this: ObjectType&lt;XP&gt;, conditions?: FindConditions&lt;XP&gt;, options?: FindOneOptions&lt;XP&gt;): Promise&lt;...&gt;', gave the following error.
      Argument of type 'import(&quot;/Users/bracicot/dev/dev-server/dev-server/node_modules/typeorm/find-options/FindConditions&quot;).FindConditions&lt;import(&quot;/Users/bracicot/dev/dev-server/packages/server-common/dist/entities/experience-post.entity&quot;).XP&gt;' is not assignable to parameter of type 'import(&quot;/Users/bracicot/dev/dev-server/packages/server-common/node_modules/typeorm/find-options/FindConditions&quot;).FindConditions&lt;import(&quot;/Users/bracicot/dev/dev-server/packages/server-common/dist/entities/experience-post.entity&quot;).XP&gt;'.
        Types of property 'userId' are incompatible.
          Type 'string | import(&quot;/Users/bracicot/dev/dev-server/dev-server/node_modules/typeorm/find-options/FindOperator&quot;).FindOperator&lt;string&gt;' is not assignable to type 'string | import(&quot;/Users/bracicot/dev/dev-server/packages/server-common/node_modules/typeorm/find-options/FindOperator&quot;).FindOperator&lt;string&gt;'.
            Type 'FindOperator&lt;string&gt;' is not assignable to type 'string | FindOperator&lt;string&gt;'.
              Type 'import(&quot;/Users/bracicot/dev/dev-server/dev-server/node_modules/typeorm/find-options/FindOperator&quot;).FindOperator&lt;string&gt;' is not assignable to type 'import(&quot;/Users/bracicot/dev/dev-server/packages/server-common/node_modules/typeorm/find-options/FindOperator&quot;).FindOperator&lt;string&gt;'.
                Types have separate declarations of a private property '_type'.ts(2769)
  const options: FindConditions&lt;XP&gt;
  </code></pre>
  <p>Seems to be related to <a href="https://github.com/typeorm/typeorm/issues/4241" rel="nofollow noreferrer">4241</a> but am not sure. I'm hoping someone can help me understand this.</p>