title: How to constraint a generic type to have new()?
body: <p>I want to have a function like:</p>
  <pre><code>createEntity&lt;TEntity&gt;(): TEntity {
      return new TEntity();
  }
  </code></pre>
  <p>In C#, we could write:</p>
  <pre><code>void TEntity CreateEntity&lt;TEntity&gt;() where TEntity : new()
  </code></pre>
  <p>How can I do this in TypeScript?</p>