title: IDEA doesn't recognize typegoose type of model
body: <p>Trying to include <code>@typegoose/typegoose</code>, followed all installation step for it and just put model which has been provided in example</p>
  <pre><code>import { prop, getModelForClass } from '@typegoose/typegoose';
  
  class User {
      @prop()
      public name?: string;
  }
  
  const UserModel = getModelForClass(User);
  </code></pre>
  <p>IDEA couldn't recognize methods from <code>UserModel</code> like 'create' etc.
  <a href="https://i.stack.imgur.com/hDCV0.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hDCV0.jpg" alt="screen" /></a></p>
  <p>What's more interesting - just put in empty folder the same <code>package.json</code> and <code>tsconfig.json</code> and put in index this code:</p>
  <pre><code>import { prop, getModelForClass } from '@typegoose/typegoose';
  import * as mongoose from 'mongoose';
  
  class User {
      @prop()
      public name?: string;
  
      @prop({ type: () =&gt; [String] })
      public jobs?: string[];
  }
  
  const UserModel = getModelForClass(User); 
  </code></pre>
  <p>and IDEA see what's needed
  <a href="https://i.stack.imgur.com/lkXPV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lkXPV.png" alt="enter image description here" /></a></p>