mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-29 12:40:34 +08:00
Merge remote-tracking branch 'remotes/upstream/switch-0.9.5' into switch-0.9.5
Conflicts: jquery/jquery-tests.ts q/Q-tests.ts q/Q.d.ts
This commit is contained in:
commit
49ddab3a0b
4 files changed
+7
-6
No files matched your search
@@ -2373,6 +2373,7 @@ function test_EventIsCallable() {
|
||||
}
|
||||
|
||||
$.when<any>($.ajax("/my/page.json")).then(a => a.asdf); // is type JQueryPromise<any>
|
||||
$.when($.ajax("/my/page.json")).then((a?,b?,c?) => a.asdf); // is type JQueryPromise<any>
|
||||
$.when("asdf", "jkl;").done((x,y) => x.length + y.length, (x,y) => x.length + y.length);
|
||||
|
||||
var f1 = $.when("fetch"); // Is type JQueryPromise<string>
|
||||
|
||||
Reference in new issue
Block a user