From afbcc5cfe0082bc9f64c9ed6f985a9358cd6f4b3 Mon Sep 17 00:00:00 2001 From: Holger Jeromin Date: Tue, 15 May 2018 14:20:56 +0200 Subject: [PATCH] adding test --- types/jquery/jquery-tests.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/types/jquery/jquery-tests.ts b/types/jquery/jquery-tests.ts index 5d6aaf0680..7375c5e814 100644 --- a/types/jquery/jquery-tests.ts +++ b/types/jquery/jquery-tests.ts @@ -3701,6 +3701,14 @@ function JQuery() { event; }); + // $ExpectType JQuery + $('table').on('myEvent', function(event: JQueryEventObject) { + // $ExpectType HTMLElement + this; + // $ExpectType JQueryEventObject + event; + }); + // $ExpectType JQuery $('table').on('myEvent', function(this: I1, event) { // $ExpectType I1