@types/jquery 3.5.4 → 3.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
jquery/JQuery.d.ts CHANGED
@@ -4526,9 +4526,9 @@ $( "*", document.body ).click(function( event ) {
4526
4526
  </html>
4527
4527
  ```
4528
4528
  */
4529
- get(index: number): TElement;
4529
+ get(index: number): TElement | undefined;
4530
4530
  /**
4531
- * Retrieve the elements matched by the jQuery object.
4531
+ * Retrieve the elements matched by the jQuery object. If the value of index is out of bounds — less than the negative number of elements or equal to or greater than the number of elements — it returns undefined.
4532
4532
  * @see \`{@link https://api.jquery.com/get/ }\`
4533
4533
  * @since 1.0
4534
4534
  * @example ​ ````Select all divs in the document and return the DOM Elements as an Array; then use the built-in reverse() method to reverse that array.
@@ -8703,7 +8703,8 @@ $( "span" ).click(function() {
8703
8703
  */
8704
8704
  parents<K extends keyof HTMLElementTagNameMap>(selector: K | JQuery<K>): JQuery<HTMLElementTagNameMap[K]>;
8705
8705
  parents<K extends keyof SVGElementTagNameMap>(selector: K | JQuery<K>): JQuery<SVGElementTagNameMap[K]>;
8706
- parents(selector?: JQuery.Selector): this;
8706
+ // tslint:disable-next-line:no-unnecessary-generics
8707
+ parents<E extends HTMLElement>(selector?: JQuery.Selector): JQuery<E>;
8707
8708
  /**
8708
8709
  * Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object.
8709
8710
  * @param selector_element _&#x40;param_ `selector_element`
jquery/JQueryStatic.d.ts CHANGED
File without changes
jquery/LICENSE CHANGED
File without changes
jquery/README.md CHANGED
@@ -8,9 +8,9 @@ This package contains type definitions for jquery (https://jquery.com).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 28 Oct 2020 18:55:09 GMT
11
+ * Last updated: Tue, 19 Oct 2021 19:31:21 GMT
12
12
  * Dependencies: [@types/sizzle](https://npmjs.com/package/@types/sizzle)
13
13
  * Global values: `$`, `Symbol`, `jQuery`
14
14
 
15
15
  # Credits
16
- These definitions were written by [Leonard Thieu](https://github.com/leonard-thieu), [Boris Yankov](https://github.com/borisyankov), [Christian Hoffmeister](https://github.com/choffmeister), [Steve Fenton](https://github.com/Steve-Fenton), [Diullei Gomes](https://github.com/Diullei), [Tass Iliopoulos](https://github.com/tasoili), [Jason Swearingen](https://github.com/jasons-novaleaf), [Sean Hill](https://github.com/seanski), [Guus Goossens](https://github.com/Guuz), [Kelly Summerlin](https://github.com/ksummerlin), [Basarat Ali Syed](https://github.com/basarat), [Nicholas Wolverson](https://github.com/nwolverson), [Derek Cicerone](https://github.com/derekcicerone), [Andrew Gaspar](https://github.com/AndrewGaspar), [Seikichi Kondo](https://github.com/seikichi), [Benjamin Jackman](https://github.com/benjaminjackman), [Poul Sorensen](https://github.com/s093294), [Josh Strobl](https://github.com/JoshStrobl), [John Reilly](https://github.com/johnnyreilly), [Dick van den Brink](https://github.com/DickvdBrink), [Thomas Schulz](https://github.com/King2500), [Terry Mun](https://github.com/terrymun), and [Martin Badin](https://github.com/martin-badin).
16
+ These definitions were written by [Leonard Thieu](https://github.com/leonard-thieu), [Boris Yankov](https://github.com/borisyankov), [Christian Hoffmeister](https://github.com/choffmeister), [Steve Fenton](https://github.com/Steve-Fenton), [Diullei Gomes](https://github.com/Diullei), [Tass Iliopoulos](https://github.com/tasoili), [Jason Swearingen](https://github.com/jasons-novaleaf), [Sean Hill](https://github.com/seanski), [Guus Goossens](https://github.com/Guuz), [Kelly Summerlin](https://github.com/ksummerlin), [Basarat Ali Syed](https://github.com/basarat), [Nicholas Wolverson](https://github.com/nwolverson), [Derek Cicerone](https://github.com/derekcicerone), [Andrew Gaspar](https://github.com/AndrewGaspar), [Seikichi Kondo](https://github.com/seikichi), [Benjamin Jackman](https://github.com/benjaminjackman), [Poul Sorensen](https://github.com/s093294), [Josh Strobl](https://github.com/JoshStrobl), [John Reilly](https://github.com/johnnyreilly), [Dick van den Brink](https://github.com/DickvdBrink), [Thomas Schulz](https://github.com/King2500), [Terry Mun](https://github.com/terrymun), [Martin Badin](https://github.com/martin-badin), and [Chris Frewin](https://github.com/princefishthrower).
File without changes
jquery/index.d.ts CHANGED
@@ -23,6 +23,7 @@
23
23
  // Thomas Schulz <https://github.com/King2500>
24
24
  // Terry Mun <https://github.com/terrymun>
25
25
  // Martin Badin <https://github.com/martin-badin>
26
+ // Chris Frewin <https://github.com/princefishthrower>
26
27
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
27
28
  // TypeScript Version: 2.7
28
29
 
jquery/legacy.d.ts CHANGED
File without changes