@types/jquery 3.5.1 → 3.5.5
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 +4 -1
- jquery/README.md +1 -1
- jquery/legacy.d.ts +0 -4
- jquery/misc.d.ts +2 -1
- jquery/package.json +3 -3
jquery/JQuery.d.ts
CHANGED
|
@@ -8701,7 +8701,10 @@ $( "span" ).click(function() {
|
|
|
8701
8701
|
</html>
|
|
8702
8702
|
```
|
|
8703
8703
|
*/
|
|
8704
|
-
parents(selector
|
|
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 _@param_ `selector_element`
|
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:
|
|
11
|
+
* Last updated: Mon, 07 Dec 2020 19:49:03 GMT
|
|
12
12
|
* Dependencies: [@types/sizzle](https://npmjs.com/package/@types/sizzle)
|
|
13
13
|
* Global values: `$`, `Symbol`, `jQuery`
|
|
14
14
|
|
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
|
/**
|
jquery/misc.d.ts
CHANGED
|
@@ -718,7 +718,7 @@ declare namespace JQuery {
|
|
|
718
718
|
* @see \`{@link https://api.jquery.com/jQuery.Callbacks/ }\`
|
|
719
719
|
* @since 1.7
|
|
720
720
|
*/
|
|
721
|
-
// tslint:disable-next-line:ban-types
|
|
721
|
+
// tslint:disable-next-line:ban-types no-unnecessary-generics
|
|
722
722
|
<T extends Function>(flags?: string): Callbacks<T>;
|
|
723
723
|
}
|
|
724
724
|
|
|
@@ -5649,6 +5649,7 @@ $( document ).on( "mousemove", function( event ) {
|
|
|
5649
5649
|
char: string | undefined;
|
|
5650
5650
|
/** @deprecated */
|
|
5651
5651
|
charCode: number;
|
|
5652
|
+
code: string;
|
|
5652
5653
|
key: string;
|
|
5653
5654
|
/** @deprecated */
|
|
5654
5655
|
keyCode: number;
|
jquery/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/jquery",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.5",
|
|
4
4
|
"description": "TypeScript definitions for jquery",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -131,6 +131,6 @@
|
|
|
131
131
|
"dependencies": {
|
|
132
132
|
"@types/sizzle": "*"
|
|
133
133
|
},
|
|
134
|
-
"typesPublisherContentHash": "
|
|
135
|
-
"typeScriptVersion": "3.
|
|
134
|
+
"typesPublisherContentHash": "a02c9cdea2ee3a153561f214a6ee588b209cc5b3e960a1c4e14467ee5e3962d2",
|
|
135
|
+
"typeScriptVersion": "3.3"
|
|
136
136
|
}
|