title: Is there a way to require function parameter to be a constructor of type parameter?
body: <p>Is there a way to write this:</p>
  
  <pre><code>foo&lt;T&gt;(bar: ConstructorOf&lt;T&gt;): T
  </code></pre>
  
  <p>so this code would be legal:</p>
  
  <pre><code>class Baz {}
  
  foo(Baz); // type param T infered to be Baz
  </code></pre>
  
  <p>?</p>