Added generic typing to jQuery.when
Allows done functions for test cases to take a failure reason to indicate a failure asynchronously.
Made $.when work with mixed type values without specifiying <any>
Added typings for when that afford promise type objects being passed in and mixes of different types.
Merge pull request #757 from AndrewGaspar/master

Added generic typing to jQuery.when