@types/jquery 3.5.2 → 3.5.6

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
@@ -8701,7 +8701,10 @@ $( "span" ).click(function() {
8701
8701
  </html>
8702
8702
  ```
8703
8703
  */
8704
- parents(selector?: JQuery.Selector): this;
8704
+ parents<K extends keyof HTMLElementTagNameMap>(selector: K | JQuery<K>): JQuery<HTMLElementTagNameMap[K]>;
8705
+ parents<K extends keyof SVGElementTagNameMap>(selector: K | JQuery<K>): JQuery<SVGElementTagNameMap[K]>;
8706
+ // tslint:disable-next-line:no-unnecessary-generics
8707
+ parents<E extends HTMLElement>(selector?: JQuery.Selector): JQuery<E>;
8705
8708
  /**
8706
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.
8707
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,7 +8,7 @@ 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: Mon, 05 Oct 2020 21:31:40 GMT
11
+ * Last updated: Tue, 06 Jul 2021 21:33:44 GMT
12
12
  * Dependencies: [@types/sizzle](https://npmjs.com/package/@types/sizzle)
13
13
  * Global values: `$`, `Symbol`, `jQuery`
14
14
 
File without changes
jquery/index.d.ts CHANGED
File without changes
jquery/legacy.d.ts CHANGED
@@ -30,7 +30,6 @@ interface JQuerySupport extends JQuery.PlainObject { }
30
30
  * @deprecated ​ Deprecated. Use \`{@link JQuery.Deferred.Callback }\` or \`{@link JQuery.Deferred.CallbackBase }\`.
31
31
  */
32
32
  interface JQueryPromiseCallback<T> {
33
- // tslint:disable-next-line:callable-types
34
33
  (value?: T, ...args: any[]): void;
35
34
  }
36
35
  /**
@@ -42,7 +41,6 @@ interface JQueryParam {
42
41
  * @param obj An array or object to serialize.
43
42
  * @param traditional A Boolean indicating whether to perform a traditional "shallow" serialization.
44
43
  */
45
- // tslint:disable-next-line:callable-types
46
44
  (obj: any, traditional?: boolean): string;
47
45
  }
48
46
  /**
@@ -183,7 +181,6 @@ interface JQueryEventObject extends BaseJQueryEventObject, JQueryInputEventObjec
183
181
  * @deprecated ​ Deprecated.
184
182
  */
185
183
  interface JQueryPromiseOperator<T, U> {
186
- // tslint:disable-next-line:callable-types
187
184
  (callback1: JQuery.TypeOrArray<JQueryPromiseCallback<T>>,
188
185
  ...callbacksN: Array<JQuery.TypeOrArray<JQueryPromiseCallback<any>>>): JQueryPromise<U>;
189
186
  }
@@ -191,7 +188,6 @@ interface JQueryPromiseOperator<T, U> {
191
188
  * @deprecated ​ Deprecated. Internal. See \`{@link https://github.com/jquery/api.jquery.com/issues/912 }\`.
192
189
  */
193
190
  interface JQueryEasingFunction {
194
- // tslint:disable-next-line:callable-types
195
191
  (percent: number): number;
196
192
  }
197
193
  /**