@types/jquery 3.5.0 → 3.5.4
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 +2 -0
- jquery/README.md +1 -1
- jquery/legacy.d.ts +0 -4
- jquery/misc.d.ts +2 -2
- jquery/package.json +3 -3
jquery/JQuery.d.ts
CHANGED
|
@@ -8701,6 +8701,8 @@ $( "span" ).click(function() {
|
|
|
8701
8701
|
</html>
|
|
8702
8702
|
```
|
|
8703
8703
|
*/
|
|
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]>;
|
|
8704
8706
|
parents(selector?: JQuery.Selector): this;
|
|
8705
8707
|
/**
|
|
8706
8708
|
* 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.
|
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: Wed, 28 Oct 2020 18:55:09 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
|
|
|
@@ -4164,7 +4164,6 @@ $( document ).on( "mousemove", function( event ) {
|
|
|
4164
4164
|
* For key or mouse events, this property indicates the specific key or button that was pressed.
|
|
4165
4165
|
* @see \`{@link https://api.jquery.com/event.which/ }\`
|
|
4166
4166
|
* @since 1.1.3
|
|
4167
|
-
* @deprecated Deprecated since 3.3. See \`{@link https://github.com/jquery/api.jquery.com/issues/821 }\`.
|
|
4168
4167
|
* @example ````Log which key was depressed.
|
|
4169
4168
|
```html
|
|
4170
4169
|
<!doctype html>
|
|
@@ -5650,6 +5649,7 @@ $( document ).on( "mousemove", function( event ) {
|
|
|
5650
5649
|
char: string | undefined;
|
|
5651
5650
|
/** @deprecated */
|
|
5652
5651
|
charCode: number;
|
|
5652
|
+
code: string;
|
|
5653
5653
|
key: string;
|
|
5654
5654
|
/** @deprecated */
|
|
5655
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.4",
|
|
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": "124a459cd4f34eff82dc7eac708d51c572adc63756e4541d7aa4ca46f0c60529",
|
|
135
|
+
"typeScriptVersion": "3.2"
|
|
136
136
|
}
|