Added typings to jQuery promises and deferreds.

This commit is contained in:
Andrew Gaspar committed 2013-07-03 01:36:17 -07:00
1 parent bccbbdaa83
commit 85eabfe63b
3 files changed
+48 -24

No files matched your search

+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());