Skip to content

Commit b937e64

Browse files
committed
Merge pull request DefinitelyTyped#5938 from Tydude4Christ/patch-1
Add JQuery focusin and focusout overload typings
2 parents 1b1b4eb + 056a2c3 commit b937e64

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

jquery/jquery.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1998,6 +1998,10 @@ interface JQuery {
19981998
*/
19991999
focus(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
20002000

2001+
/**
2002+
* Trigger the "focusin" event on an element.
2003+
*/
2004+
focusin(): JQuery;
20012005
/**
20022006
* Bind an event handler to the "focusin" JavaScript event
20032007
*
@@ -2012,6 +2016,10 @@ interface JQuery {
20122016
*/
20132017
focusin(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery;
20142018

2019+
/**
2020+
* Trigger the "focusout" event on an element.
2021+
*/
2022+
focusout(): JQuery;
20152023
/**
20162024
* Bind an event handler to the "focusout" JavaScript event
20172025
*

0 commit comments

Comments
 (0)