title: Get constructor/instance from generic type in TypeScript
body: <p>I am trying to create instance from generic type <code>T</code> for example,</p>
  
  <pre><code>class Factory {
      public static generate&lt;T&gt;(): T { 
        return new T();
    }
  }
  </code></pre>
  
  <p>But since <code>T</code> is just a <em>type</em> not <strong>constructor</strong>, we can't do that.</p>
  
  <p>Is it impossible to create an instance from a generic type in TypeScript?</p>
  
  <p>I'v also read these articles but could not found a solution.</p>
  
  <ul>
  <li><a href="https://github.com/Microsoft/TypeScript/issues/2037" rel="noreferrer">TypeScript #2037</a></li>
  <li><a href="https://stackoverflow.com/questions/17382143/how-to-create-a-new-object-from-type-parameter-in-generic-class-in-typescript">How to create a new object from type parameter in generic class in typescript?</a></li>
  <li><a href="https://stackoverflow.com/questions/29436747/how-can-i-create-a-new-instance-of-the-generic-type-of-my-typescript-class">How can I create a new instance of the generic type of my Typescript class?</a></li>
  </ul>