Added typings to jQuery promises and deferreds.

This commit is contained in:
Andrew Gaspar
2013-07-03 01:36:17 -07:00
parent bccbbdaa83
commit 85eabfe63b
3 changed files with 48 additions and 24 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ Q<number[]>(arrayPromise) // type specification required
.then<number>(returnsNumPromise) // requires specification
.then(num => num.toFixed());
declare var jPromise: JQueryPromise;
declare var jPromise: JQueryPromise<string>;
// if jQuery promises definition supported generics, this could be more interesting example
Q<any>(jPromise).then((val) => val.toExponential());