File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -337,6 +337,18 @@ interface JQueryParam {
337
337
( obj : any , traditional : boolean ) : string ;
338
338
}
339
339
340
+ /**
341
+ * The interface used to construct jQuery events (with $.Event). It is
342
+ * defined separately instead of inline in JQueryStatic to allow
343
+ * overriding the construction function with specific strings
344
+ * returning specific event objects.
345
+ */
346
+ interface JQueryEventConstructor {
347
+ ( name : string , eventProperties ?: any ) : JQueryEventObject ;
348
+ new ( name : string , eventProperties ?: any ) : JQueryEventObject ;
349
+ }
350
+
351
+
340
352
/*
341
353
Static members of jQuery (those on $ and jQuery themselves)
342
354
*/
@@ -529,10 +541,7 @@ interface JQueryStatic {
529
541
proxy ( fn : ( ...args : any [ ] ) => any , context : any , ...args : any [ ] ) : any ;
530
542
proxy ( context : any , name : string , ...args : any [ ] ) : any ;
531
543
532
- Event : {
533
- ( name : string , eventProperties ?: any ) : JQueryEventObject ;
534
- new ( name : string , eventProperties ?: any ) : JQueryEventObject ;
535
- } ;
544
+ Event : JQueryEventConstructor ;
536
545
537
546
// Internals
538
547
error ( message : any ) : JQuery ;
You can’t perform that action at this time.
0 commit comments