mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-29 12:40:34 +08:00
Added typings to jQuery promises and deferreds.
This commit is contained in:
1 parent
bccbbdaa83
commit
85eabfe63b
3 files changed
+48
-24
No files matched your search
+1
-1
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user