title: How to define the return type of currying function?
body: <p>I have a currying function that looks as follows:</p>
  <pre><code>export interface NewIdeaCardSubmit {
      title: string,
      description: string,
      categories: CategoryValues
  }
  
  const applyInputs = (title: string) =&gt;
                      (description: string) =&gt;
                      (categories: CategoryValues) =&gt; {
                         return ({
                             title: title,
                             description: description,
                             categories: categories
                         } as NewIdeaCardSubmit )
                      };
  </code></pre>
  <p>Is there another way to define the return type of <code>applyInputs</code> function instead of with <code>as</code>?</p>
  <p>Nice would be:</p>
  <pre><code>const applyInputs = (title: string) =&gt; (description: string) =&gt; (categories: CategoryValues) =&gt; NewIdeaCardSubmit
  </code></pre>