@types/jquery 3.3.31 → 3.3.35
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 +3 -1
- jquery/JQueryStatic.d.ts +2 -2
- jquery/LICENSE +21 -21
- jquery/README.md +6 -6
- jquery/index.d.ts +1 -0
- jquery/misc.d.ts +11 -1
- jquery/package.json +9 -4
jquery/JQuery.d.ts
CHANGED
|
@@ -4133,7 +4133,9 @@ $( "p" )
|
|
|
4133
4133
|
</html>
|
|
4134
4134
|
```
|
|
4135
4135
|
*/
|
|
4136
|
-
find(selector_element:
|
|
4136
|
+
find<K extends keyof HTMLElementTagNameMap>(selector_element: K | JQuery<K>): JQuery<HTMLElementTagNameMap[K]>;
|
|
4137
|
+
find<K extends keyof SVGElementTagNameMap>(selector_element: K | JQuery<K>): JQuery<SVGElementTagNameMap[K]>;
|
|
4138
|
+
find<E extends HTMLElement>(selector_element: JQuery.Selector | E | JQuery<E>): JQuery<E>;
|
|
4137
4139
|
/**
|
|
4138
4140
|
* Stop the currently-running animation, remove all queued animations, and complete all animations for the matched elements.
|
|
4139
4141
|
* @param queue The name of the queue in which to stop animations.
|
jquery/JQueryStatic.d.ts
CHANGED
|
@@ -102,7 +102,7 @@ $( "<div/>", {
|
|
|
102
102
|
/**
|
|
103
103
|
* Accepts a string containing a CSS selector which is then used to match a set of elements.
|
|
104
104
|
* @param selector A string containing a selector expression
|
|
105
|
-
* @param context A DOM Element, Document, or jQuery to use as context
|
|
105
|
+
* @param context A DOM Element, Document, Selector or jQuery to use as context
|
|
106
106
|
* @see \`{@link https://api.jquery.com/jQuery/ }\`
|
|
107
107
|
* @since 1.0
|
|
108
108
|
* @example ````Find all p elements that are children of a div element and apply a border to them.
|
|
@@ -137,7 +137,7 @@ $( "div", xml.responseXML );
|
|
|
137
137
|
|
|
138
138
|
*/
|
|
139
139
|
// tslint:disable-next-line:no-unnecessary-generics
|
|
140
|
-
<TElement extends Element = HTMLElement>(selector: JQuery.Selector, context?: Element | Document | JQuery): JQuery<TElement>;
|
|
140
|
+
<TElement extends Element = HTMLElement>(selector: JQuery.Selector, context?: Element | Document | JQuery | JQuery.Selector): JQuery<TElement>;
|
|
141
141
|
/**
|
|
142
142
|
* Return a collection of matched elements either found in the DOM based on passed argument(s) or created by passing an HTML string.
|
|
143
143
|
* @param element A DOM element to wrap in a jQuery object.
|
jquery/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Microsoft Corporation.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE
|
jquery/README.md
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
This package contains type definitions for jquery (https://jquery.com).
|
|
6
6
|
|
|
7
7
|
# Details
|
|
8
|
-
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery
|
|
8
|
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery.
|
|
9
9
|
|
|
10
|
-
Additional Details
|
|
11
|
-
* Last updated:
|
|
12
|
-
* Dependencies: @types/sizzle
|
|
13
|
-
* Global values:
|
|
10
|
+
### Additional Details
|
|
11
|
+
* Last updated: Wed, 15 Apr 2020 23:26:05 GMT
|
|
12
|
+
* Dependencies: [@types/sizzle](https://npmjs.com/package/@types/sizzle)
|
|
13
|
+
* Global values: `$`, `Symbol`, `jQuery`
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
|
-
These definitions were written by Leonard Thieu
|
|
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).
|
jquery/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
// Dick van den Brink <https://github.com/DickvdBrink>
|
|
23
23
|
// Thomas Schulz <https://github.com/King2500>
|
|
24
24
|
// Terry Mun <https://github.com/terrymun>
|
|
25
|
+
// Martin Badin <https://github.com/martin-badin>
|
|
25
26
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
26
27
|
// TypeScript Version: 2.3
|
|
27
28
|
|
jquery/misc.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
declare namespace JQuery {
|
|
6
6
|
type TypeOrArray<T> = T | T[];
|
|
7
|
-
type Node = Element | Text | Comment | DocumentFragment;
|
|
7
|
+
type Node = Element | Text | Comment | Document | DocumentFragment;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* A string is designated htmlString in jQuery documentation when it is used to represent one or more DOM elements, typically to be created and inserted in the document. When passed as an argument of the jQuery() function, the string is identified as HTML if it starts with <tag ... >) and is parsed as such until the final > character. Prior to jQuery 1.9, a string was considered to be HTML if it contained <tag ... > anywhere within the string.
|
|
@@ -141,6 +141,16 @@ declare namespace JQuery {
|
|
|
141
141
|
* multiple, space-separated values: As of jQuery 1.5, jQuery can convert a dataType from what it received in the Content-Type header to what you require. For example, if you want a text response to be treated as XML, use "text xml" for the dataType. You can also make a JSONP request, have it received as text, and interpreted by jQuery as XML: "jsonp text xml". Similarly, a shorthand string such as "jsonp xml" will first attempt to convert from jsonp to xml, and, failing that, convert from jsonp to text, and then from text to xml.
|
|
142
142
|
*/
|
|
143
143
|
dataType?: 'xml' | 'html' | 'script' | 'json' | 'jsonp' | 'text' | string;
|
|
144
|
+
/**
|
|
145
|
+
* The MIME type of content that is used to submit the form to the server. Possible values are:
|
|
146
|
+
*
|
|
147
|
+
* "application/x-www-form-urlencoded": The initial default type.
|
|
148
|
+
*
|
|
149
|
+
* "multipart/form-data": The type that allows file <input> element(s) to upload file data.
|
|
150
|
+
*
|
|
151
|
+
* "text/plain": A type introduced in HTML5.
|
|
152
|
+
*/
|
|
153
|
+
enctype?: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain';
|
|
144
154
|
/**
|
|
145
155
|
* A function to be called if the request fails. The function receives three arguments: The jqXHR (in jQuery 1.4.x, XMLHttpRequest) object, a string describing the type of error that occurred and an optional exception object, if one occurred. Possible values for the second argument (besides null) are "timeout", "error", "abort", and "parsererror". When an HTTP error occurs, errorThrown receives the textual portion of the HTTP status, such as "Not Found" or "Internal Server Error." As of jQuery 1.5, the error setting can accept an array of functions. Each function will be called in turn. Note: This handler is not called for cross-domain script and cross-domain JSONP requests. This is an Ajax Event.
|
|
146
156
|
*/
|
jquery/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/jquery",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.35",
|
|
4
4
|
"description": "TypeScript definitions for jquery",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -113,10 +113,15 @@
|
|
|
113
113
|
"name": "Terry Mun",
|
|
114
114
|
"url": "https://github.com/terrymun",
|
|
115
115
|
"githubUsername": "terrymun"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "Martin Badin",
|
|
119
|
+
"url": "https://github.com/martin-badin",
|
|
120
|
+
"githubUsername": "martin-badin"
|
|
116
121
|
}
|
|
117
122
|
],
|
|
118
123
|
"main": "",
|
|
119
|
-
"types": "index",
|
|
124
|
+
"types": "index.d.ts",
|
|
120
125
|
"repository": {
|
|
121
126
|
"type": "git",
|
|
122
127
|
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
|
@@ -126,6 +131,6 @@
|
|
|
126
131
|
"dependencies": {
|
|
127
132
|
"@types/sizzle": "*"
|
|
128
133
|
},
|
|
129
|
-
"typesPublisherContentHash": "
|
|
130
|
-
"typeScriptVersion": "2.
|
|
134
|
+
"typesPublisherContentHash": "e3aa090ebd14d2d163554752b2505a42536649d7e62896dc235486a83d9b0cf2",
|
|
135
|
+
"typeScriptVersion": "2.8"
|
|
131
136
|
}
|