title: Typescript TSX and generic parameters
body: <p>Typescript introduces support for the JSX syntax. So I have an expression that works quite well with traditional *.ts files but no with *.tsx ones:</p>
  
  <pre><code>const f = &lt;T1&gt;(arg1: T1) =&gt; &lt;T2&gt;(arg2: T2) =&gt; {
     return { arg1, arg2 };
  }
  </code></pre>
  
  <p>I wonder is there a way to make it work inside a *.tsx file?</p>