title: How to automatically apply argument to class constructor?
body: <p>I have an es6 class <code>User</code> and a global function <code>map()</code> given below:</p>
  
  <pre><code>class  User {
    constructor(public name: string) {}
  }
  
  const map = &lt;T, R&gt;(project: (value: T) =&gt; R) =&gt; {}
  </code></pre>
  
  <p>Instead of writing the following:</p>
  
  <pre><code>map((value) =&gt; new User(value))
  </code></pre>
  
  <p>I want to (somehow) write something like:</p>
  
  <pre><code>map(new User)
  </code></pre>
  
  <p>I am not sure if this is possible or not.</p>