mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
added second argument "element" to $.filter
This commit is contained in:
2
jquery/jquery.d.ts
vendored
2
jquery/jquery.d.ts
vendored
@@ -3655,7 +3655,7 @@ interface JQuery {
|
||||
*
|
||||
* @param func A function used as a test for each element in the set. this is the current DOM element.
|
||||
*/
|
||||
filter(func: (index: number) => any): JQuery;
|
||||
filter(func: (index: number, element: Element) => any): JQuery;
|
||||
/**
|
||||
* Reduce the set of matched elements to those that match the selector or pass the function's test.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user