mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-06 06:19:58 +08:00
adding test
This commit is contained in:
@@ -3701,6 +3701,14 @@ function JQuery() {
|
||||
event;
|
||||
});
|
||||
|
||||
// $ExpectType JQuery<HTMLElement>
|
||||
$('table').on('myEvent', function(event: JQueryEventObject) {
|
||||
// $ExpectType HTMLElement
|
||||
this;
|
||||
// $ExpectType JQueryEventObject
|
||||
event;
|
||||
});
|
||||
|
||||
// $ExpectType JQuery<HTMLElement>
|
||||
$('table').on('myEvent', function(this: I1, event) {
|
||||
// $ExpectType I1
|
||||
|
||||
Reference in New Issue
Block a user