title: Typescript + jQuery Promises = .then Type mismatch
body: <p>i'm using Typescript and jQuery Promises and I am experiencing an error with the following code:</p>
  
  <pre><code>    var promiseOne = this.myFunc(1);
      var promiseTwo = this.myFunc(2);
  
      $.when(promiseOne, promiseTwo).then((valFromPromiseOne: number, valFromPromiseTwo: number) =&gt;   //Error here (see below)
      {
          //Use both return values of the promises...
      });
  
      myFunc(value: number): JQueryPromise&lt;number&gt;
      {
          var dfd = $.Deferred();
  
          setTimeout(function ()
          {
              dfd.resolve(value);
          }, 1000);
  
          return dfd.promise();
      }
  </code></pre>
  
  <p>The error I'm getting is:</p>
  
  <pre><code>    Error   5   Supplied parameters do not match any signature of call target:
          Call signatures of types '(valFromPromiseOne: number, valFromPromiseTwo: number) =&gt; void' and '(value: any) =&gt; {}' are incompatible:
              Call signature expects 1 or fewer parameters.
  </code></pre>
  
  <p>I want the function to execute only when both Promises are resolved.</p>
  
  <p>Am I doing somenthing wrong? Is there a different way to achieve what I want?</p>
  
  <p>Thanks</p>