@types/jquery 2.0.53 → 2.0.57
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 v2 → jquery v2.0}/LICENSE +21 -21
- jquery v2.0/README.md +16 -0
- {jquery v2 → jquery v2.0}/index.d.ts +58 -70
- {jquery v2 → jquery v2.0}/package.json +11 -7
- jquery v2/README.md +0 -16
|
@@ -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 v2.0/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Installation
|
|
2
|
+
> `npm install --save @types/jquery`
|
|
3
|
+
|
|
4
|
+
# Summary
|
|
5
|
+
This package contains type definitions for jQuery (http://jquery.com/).
|
|
6
|
+
|
|
7
|
+
# Details
|
|
8
|
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery/v2.
|
|
9
|
+
|
|
10
|
+
### Additional Details
|
|
11
|
+
* Last updated: Tue, 06 Jul 2021 21:33:44 GMT
|
|
12
|
+
* Dependencies: none
|
|
13
|
+
* Global values: `$`, `jQuery`
|
|
14
|
+
|
|
15
|
+
# Credits
|
|
16
|
+
These definitions were written by [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), and [Leonard Thieu](https://github.com/leonard-thieu).
|
|
@@ -51,7 +51,7 @@ interface JQueryAjaxSettings {
|
|
|
51
51
|
/**
|
|
52
52
|
* By default, all requests are sent asynchronously (i.e. this is set to true by default). If you need synchronous requests, set this option to false. Cross-domain requests and dataType: "jsonp" requests do not support synchronous operation. Note that synchronous requests may temporarily lock the browser, disabling any actions while the request is active. As of jQuery 1.8, the use of async: false with jqXHR ($.Deferred) is deprecated; you must use the success/error/complete callback options instead of the corresponding methods of the jqXHR object such as jqXHR.done() or the deprecated jqXHR.success().
|
|
53
53
|
*/
|
|
54
|
-
async?: boolean;
|
|
54
|
+
async?: boolean | undefined;
|
|
55
55
|
/**
|
|
56
56
|
* A pre-request callback function that can be used to modify the jqXHR (in jQuery 1.4.x, XMLHTTPRequest) object before it is sent. Use this to set custom headers, etc. The jqXHR and settings objects are passed as arguments. This is an Ajax Event. Returning false in the beforeSend function will cancel the request. As of jQuery 1.5, the beforeSend option will be called regardless of the type of request.
|
|
57
57
|
*/
|
|
@@ -59,7 +59,7 @@ interface JQueryAjaxSettings {
|
|
|
59
59
|
/**
|
|
60
60
|
* If set to false, it will force requested pages not to be cached by the browser. Note: Setting cache to false will only work correctly with HEAD and GET requests. It works by appending "_={timestamp}" to the GET parameters. The parameter is not needed for other types of requests, except in IE8 when a POST is made to a URL that has already been requested by a GET.
|
|
61
61
|
*/
|
|
62
|
-
cache?: boolean;
|
|
62
|
+
cache?: boolean | undefined;
|
|
63
63
|
/**
|
|
64
64
|
* A function to be called when the request finishes (after success and error callbacks are executed). The function gets passed two arguments: The jqXHR (in jQuery 1.4.x, XMLHTTPRequest) object and a string categorizing the status of the request ("success", "notmodified", "error", "timeout", "abort", or "parsererror"). As of jQuery 1.5, the complete setting can accept an array of functions. Each function will be called in turn. This is an Ajax Event.
|
|
65
65
|
*/
|
|
@@ -67,7 +67,7 @@ interface JQueryAjaxSettings {
|
|
|
67
67
|
/**
|
|
68
68
|
* An object of string/regular-expression pairs that determine how jQuery will parse the response, given its content type. (version added: 1.5)
|
|
69
69
|
*/
|
|
70
|
-
contents?: { [key: string]: any; };
|
|
70
|
+
contents?: { [key: string]: any; } | undefined;
|
|
71
71
|
//According to jQuery.ajax source code, ajax's option actually allows contentType to set to "false"
|
|
72
72
|
// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/742
|
|
73
73
|
/**
|
|
@@ -81,11 +81,11 @@ interface JQueryAjaxSettings {
|
|
|
81
81
|
/**
|
|
82
82
|
* An object containing dataType-to-dataType converters. Each converter's value is a function that returns the transformed value of the response. (version added: 1.5)
|
|
83
83
|
*/
|
|
84
|
-
converters?: { [key: string]: any; };
|
|
84
|
+
converters?: { [key: string]: any; } | undefined;
|
|
85
85
|
/**
|
|
86
86
|
* If you wish to force a crossDomain request (such as JSONP) on the same domain, set the value of crossDomain to true. This allows, for example, server-side redirection to another domain. (version added: 1.5)
|
|
87
87
|
*/
|
|
88
|
-
crossDomain?: boolean;
|
|
88
|
+
crossDomain?: boolean | undefined;
|
|
89
89
|
/**
|
|
90
90
|
* Data to be sent to the server. It is converted to a query string, if not already a string. It's appended to the url for GET-requests. See processData option to prevent this automatic processing. Object must be key-value pairs. If value is an Array, jQuery serializes multiple values with same key based on the value of the traditional setting (described below).
|
|
91
91
|
*/
|
|
@@ -97,7 +97,7 @@ interface JQueryAjaxSettings {
|
|
|
97
97
|
/**
|
|
98
98
|
* The type of data that you're expecting back from the server. If none is specified, jQuery will try to infer it based on the MIME type of the response (an XML MIME type will yield XML, in 1.4 JSON will yield a JavaScript object, in 1.4 script will execute the script, and anything else will be returned as a string).
|
|
99
99
|
*/
|
|
100
|
-
dataType?: string;
|
|
100
|
+
dataType?: string | undefined;
|
|
101
101
|
/**
|
|
102
102
|
* 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.
|
|
103
103
|
*/
|
|
@@ -105,19 +105,19 @@ interface JQueryAjaxSettings {
|
|
|
105
105
|
/**
|
|
106
106
|
* Whether to trigger global Ajax event handlers for this request. The default is true. Set to false to prevent the global handlers like ajaxStart or ajaxStop from being triggered. This can be used to control various Ajax Events.
|
|
107
107
|
*/
|
|
108
|
-
global?: boolean;
|
|
108
|
+
global?: boolean | undefined;
|
|
109
109
|
/**
|
|
110
110
|
* An object of additional header key/value pairs to send along with requests using the XMLHttpRequest transport. The header X-Requested-With: XMLHttpRequest is always added, but its default XMLHttpRequest value can be changed here. Values in the headers setting can also be overwritten from within the beforeSend function. (version added: 1.5)
|
|
111
111
|
*/
|
|
112
|
-
headers?: { [key: string]: any; };
|
|
112
|
+
headers?: { [key: string]: any; } | undefined;
|
|
113
113
|
/**
|
|
114
114
|
* Allow the request to be successful only if the response has changed since the last request. This is done by checking the Last-Modified header. Default value is false, ignoring the header. In jQuery 1.4 this technique also checks the 'etag' specified by the server to catch unmodified data.
|
|
115
115
|
*/
|
|
116
|
-
ifModified?: boolean;
|
|
116
|
+
ifModified?: boolean | undefined;
|
|
117
117
|
/**
|
|
118
118
|
* Allow the current environment to be recognized as "local," (e.g. the filesystem), even if jQuery does not recognize it as such by default. The following protocols are currently recognized as local: file, *-extension, and widget. If the isLocal setting needs modification, it is recommended to do so once in the $.ajaxSetup() method. (version added: 1.5.1)
|
|
119
119
|
*/
|
|
120
|
-
isLocal?: boolean;
|
|
120
|
+
isLocal?: boolean | undefined;
|
|
121
121
|
/**
|
|
122
122
|
* Override the callback function name in a jsonp request. This value will be used instead of 'callback' in the 'callback=?' part of the query string in the url. So {jsonp:'onJSONPLoad'} would result in 'onJSONPLoad=?' passed to the server. As of jQuery 1.5, setting the jsonp option to false prevents jQuery from adding the "?callback" string to the URL or attempting to use "=?" for transformation. In this case, you should also explicitly set the jsonpCallback setting. For example, { jsonp: false, jsonpCallback: "callbackName" }
|
|
123
123
|
*/
|
|
@@ -129,27 +129,27 @@ interface JQueryAjaxSettings {
|
|
|
129
129
|
/**
|
|
130
130
|
* The HTTP method to use for the request (e.g. "POST", "GET", "PUT"). (version added: 1.9.0)
|
|
131
131
|
*/
|
|
132
|
-
method?: string;
|
|
132
|
+
method?: string | undefined;
|
|
133
133
|
/**
|
|
134
134
|
* A MIME type to override the XHR MIME type. (version added: 1.5.1)
|
|
135
135
|
*/
|
|
136
|
-
mimeType?: string;
|
|
136
|
+
mimeType?: string | undefined;
|
|
137
137
|
/**
|
|
138
138
|
* A password to be used with XMLHttpRequest in response to an HTTP access authentication request.
|
|
139
139
|
*/
|
|
140
|
-
password?: string;
|
|
140
|
+
password?: string | undefined;
|
|
141
141
|
/**
|
|
142
142
|
* By default, data passed in to the data option as an object (technically, anything other than a string) will be processed and transformed into a query string, fitting to the default content-type "application/x-www-form-urlencoded". If you want to send a DOMDocument, or other non-processed data, set this option to false.
|
|
143
143
|
*/
|
|
144
|
-
processData?: boolean;
|
|
144
|
+
processData?: boolean | undefined;
|
|
145
145
|
/**
|
|
146
146
|
* Only applies when the "script" transport is used (e.g., cross-domain requests with "jsonp" or "script" dataType and "GET" type). Sets the charset attribute on the script tag used in the request. Used when the character set on the local page is not the same as the one on the remote script.
|
|
147
147
|
*/
|
|
148
|
-
scriptCharset?: string;
|
|
148
|
+
scriptCharset?: string | undefined;
|
|
149
149
|
/**
|
|
150
150
|
* An object of numeric HTTP codes and functions to be called when the response has the corresponding code. f the request is successful, the status code functions take the same parameters as the success callback; if it results in an error (including 3xx redirect), they take the same parameters as the error callback. (version added: 1.5)
|
|
151
151
|
*/
|
|
152
|
-
statusCode?: { [key: string]: any; };
|
|
152
|
+
statusCode?: { [key: string]: any; } | undefined;
|
|
153
153
|
/**
|
|
154
154
|
* A function to be called if the request succeeds. The function gets passed three arguments: The data returned from the server, formatted according to the dataType parameter; a string describing the status; and the jqXHR (in jQuery 1.4.x, XMLHttpRequest) object. As of jQuery 1.5, the success setting can accept an array of functions. Each function will be called in turn. This is an Ajax Event.
|
|
155
155
|
*/
|
|
@@ -157,23 +157,23 @@ interface JQueryAjaxSettings {
|
|
|
157
157
|
/**
|
|
158
158
|
* Set a timeout (in milliseconds) for the request. This will override any global timeout set with $.ajaxSetup(). The timeout period starts at the point the $.ajax call is made; if several other requests are in progress and the browser has no connections available, it is possible for a request to time out before it can be sent. In jQuery 1.4.x and below, the XMLHttpRequest object will be in an invalid state if the request times out; accessing any object members may throw an exception. In Firefox 3.0+ only, script and JSONP requests cannot be cancelled by a timeout; the script will run even if it arrives after the timeout period.
|
|
159
159
|
*/
|
|
160
|
-
timeout?: number;
|
|
160
|
+
timeout?: number | undefined;
|
|
161
161
|
/**
|
|
162
162
|
* Set this to true if you wish to use the traditional style of parameter serialization.
|
|
163
163
|
*/
|
|
164
|
-
traditional?: boolean;
|
|
164
|
+
traditional?: boolean | undefined;
|
|
165
165
|
/**
|
|
166
166
|
* The type of request to make ("POST" or "GET"), default is "GET". Note: Other HTTP request methods, such as PUT and DELETE, can also be used here, but they are not supported by all browsers.
|
|
167
167
|
*/
|
|
168
|
-
type?: string;
|
|
168
|
+
type?: string | undefined;
|
|
169
169
|
/**
|
|
170
170
|
* A string containing the URL to which the request is sent.
|
|
171
171
|
*/
|
|
172
|
-
url?: string;
|
|
172
|
+
url?: string | undefined;
|
|
173
173
|
/**
|
|
174
174
|
* A username to be used with XMLHttpRequest in response to an HTTP access authentication request.
|
|
175
175
|
*/
|
|
176
|
-
username?: string;
|
|
176
|
+
username?: string | undefined;
|
|
177
177
|
/**
|
|
178
178
|
* Callback for creating the XMLHttpRequest object. Defaults to the ActiveXObject when available (IE), the XMLHttpRequest otherwise. Override to provide your own implementation for XMLHttpRequest or enhancements to the factory.
|
|
179
179
|
*/
|
|
@@ -181,7 +181,7 @@ interface JQueryAjaxSettings {
|
|
|
181
181
|
/**
|
|
182
182
|
* An object of fieldName-fieldValue pairs to set on the native XHR object. For example, you can use it to set withCredentials to true for cross-domain requests if needed. In jQuery 1.5, the withCredentials property was not propagated to the native XHR and thus CORS requests requiring it would ignore this flag. For this reason, we recommend using jQuery 1.5.1+ should you require the use of it. (version added: 1.5.1)
|
|
183
183
|
*/
|
|
184
|
-
xhrFields?: { [key: string]: any; };
|
|
184
|
+
xhrFields?: { [key: string]: any; } | undefined;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
/**
|
|
@@ -635,6 +635,7 @@ interface JQueryKeyEventObject extends JQueryInputEventObject {
|
|
|
635
635
|
char: string;
|
|
636
636
|
/** @deprecated */
|
|
637
637
|
charCode: number;
|
|
638
|
+
code: string;
|
|
638
639
|
key: string;
|
|
639
640
|
/** @deprecated */
|
|
640
641
|
keyCode: number;
|
|
@@ -654,25 +655,25 @@ interface JQueryEventObject extends BaseJQueryEventObject, JQueryCustomEventObje
|
|
|
654
655
|
* @deprecated since version 1.9
|
|
655
656
|
*/
|
|
656
657
|
interface JQuerySupport {
|
|
657
|
-
ajax?: boolean;
|
|
658
|
-
boxModel?: boolean;
|
|
659
|
-
changeBubbles?: boolean;
|
|
660
|
-
checkClone?: boolean;
|
|
661
|
-
checkOn?: boolean;
|
|
662
|
-
cors?: boolean;
|
|
663
|
-
cssFloat?: boolean;
|
|
664
|
-
hrefNormalized?: boolean;
|
|
665
|
-
htmlSerialize?: boolean;
|
|
666
|
-
leadingWhitespace?: boolean;
|
|
667
|
-
noCloneChecked?: boolean;
|
|
668
|
-
noCloneEvent?: boolean;
|
|
669
|
-
opacity?: boolean;
|
|
670
|
-
optDisabled?: boolean;
|
|
671
|
-
optSelected?: boolean;
|
|
658
|
+
ajax?: boolean | undefined;
|
|
659
|
+
boxModel?: boolean | undefined;
|
|
660
|
+
changeBubbles?: boolean | undefined;
|
|
661
|
+
checkClone?: boolean | undefined;
|
|
662
|
+
checkOn?: boolean | undefined;
|
|
663
|
+
cors?: boolean | undefined;
|
|
664
|
+
cssFloat?: boolean | undefined;
|
|
665
|
+
hrefNormalized?: boolean | undefined;
|
|
666
|
+
htmlSerialize?: boolean | undefined;
|
|
667
|
+
leadingWhitespace?: boolean | undefined;
|
|
668
|
+
noCloneChecked?: boolean | undefined;
|
|
669
|
+
noCloneEvent?: boolean | undefined;
|
|
670
|
+
opacity?: boolean | undefined;
|
|
671
|
+
optDisabled?: boolean | undefined;
|
|
672
|
+
optSelected?: boolean | undefined;
|
|
672
673
|
scriptEval? (): boolean;
|
|
673
|
-
style?: boolean;
|
|
674
|
-
submitBubbles?: boolean;
|
|
675
|
-
tbody?: boolean;
|
|
674
|
+
style?: boolean | undefined;
|
|
675
|
+
submitBubbles?: boolean | undefined;
|
|
676
|
+
tbody?: boolean | undefined;
|
|
676
677
|
}
|
|
677
678
|
|
|
678
679
|
interface JQueryParam {
|
|
@@ -740,35 +741,35 @@ interface JQueryAnimationOptions {
|
|
|
740
741
|
/**
|
|
741
742
|
* A string indicating which easing function to use for the transition.
|
|
742
743
|
*/
|
|
743
|
-
easing?: string;
|
|
744
|
+
easing?: string | undefined;
|
|
744
745
|
/**
|
|
745
746
|
* A function to call once the animation is complete.
|
|
746
747
|
*/
|
|
747
|
-
complete?: Function;
|
|
748
|
+
complete?: Function | undefined;
|
|
748
749
|
/**
|
|
749
750
|
* A function to be called for each animated property of each animated element. This function provides an opportunity to modify the Tween object to change the value of the property before it is set.
|
|
750
751
|
*/
|
|
751
|
-
step?: (now: number, tween: any) => any;
|
|
752
|
+
step?: ((now: number, tween: any) => any) | undefined;
|
|
752
753
|
/**
|
|
753
754
|
* A function to be called after each step of the animation, only once per animated element regardless of the number of animated properties. (version added: 1.8)
|
|
754
755
|
*/
|
|
755
|
-
progress?: (animation: JQueryPromise<any>, progress: number, remainingMs: number) => any;
|
|
756
|
+
progress?: ((animation: JQueryPromise<any>, progress: number, remainingMs: number) => any) | undefined;
|
|
756
757
|
/**
|
|
757
758
|
* A function to call when the animation begins. (version added: 1.8)
|
|
758
759
|
*/
|
|
759
|
-
start?: (animation: JQueryPromise<any>) => any;
|
|
760
|
+
start?: ((animation: JQueryPromise<any>) => any) | undefined;
|
|
760
761
|
/**
|
|
761
762
|
* A function to be called when the animation completes (its Promise object is resolved). (version added: 1.8)
|
|
762
763
|
*/
|
|
763
|
-
done?: (animation: JQueryPromise<any>, jumpedToEnd: boolean) => any;
|
|
764
|
+
done?: ((animation: JQueryPromise<any>, jumpedToEnd: boolean) => any) | undefined;
|
|
764
765
|
/**
|
|
765
766
|
* A function to be called when the animation fails to complete (its Promise object is rejected). (version added: 1.8)
|
|
766
767
|
*/
|
|
767
|
-
fail?: (animation: JQueryPromise<any>, jumpedToEnd: boolean) => any;
|
|
768
|
+
fail?: ((animation: JQueryPromise<any>, jumpedToEnd: boolean) => any) | undefined;
|
|
768
769
|
/**
|
|
769
770
|
* A function to be called when the animation completes or stops without completing (its Promise object is either resolved or rejected). (version added: 1.8)
|
|
770
771
|
*/
|
|
771
|
-
always?: (animation: JQueryPromise<any>, jumpedToEnd: boolean) => any;
|
|
772
|
+
always?: ((animation: JQueryPromise<any>, jumpedToEnd: boolean) => any) | undefined;
|
|
772
773
|
/**
|
|
773
774
|
* A Boolean indicating whether to place the animation in the effects queue. If false, the animation will begin immediately. As of jQuery 1.7, the queue option can also accept a string, in which case the animation is added to the queue represented by that string. When a custom queue name is used the animation does not automatically start; you must call .dequeue("queuename") to start it.
|
|
774
775
|
*/
|
|
@@ -776,7 +777,7 @@ interface JQueryAnimationOptions {
|
|
|
776
777
|
/**
|
|
777
778
|
* A map of one or more of the CSS properties defined by the properties argument and their corresponding easing functions. (version added: 1.4)
|
|
778
779
|
*/
|
|
779
|
-
specialEasing?: Object;
|
|
780
|
+
specialEasing?: Object | undefined;
|
|
780
781
|
}
|
|
781
782
|
|
|
782
783
|
interface JQueryEasingFunction {
|
|
@@ -2775,20 +2776,20 @@ interface JQuery {
|
|
|
2775
2776
|
* Attach an event handler function for one or more events to the selected elements.
|
|
2776
2777
|
*
|
|
2777
2778
|
* @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
|
|
2778
|
-
* @param
|
|
2779
|
+
* @param selector A selector string to filter the descendants of the selected elements that trigger the event. If the selector is null or omitted, the event is always triggered when it reaches the selected element.
|
|
2779
2780
|
* @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false.
|
|
2780
2781
|
* @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
|
|
2781
|
-
|
|
2782
|
-
on(events: string,
|
|
2782
|
+
*/
|
|
2783
|
+
on(events: string, selector: string, handler: (eventObject: JQueryEventObject, ...eventData: any[]) => any): JQuery;
|
|
2783
2784
|
/**
|
|
2784
2785
|
* Attach an event handler function for one or more events to the selected elements.
|
|
2785
2786
|
*
|
|
2786
2787
|
* @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
|
|
2787
|
-
* @param
|
|
2788
|
+
* @param data Data to be passed to the handler in event.data when an event is triggered.
|
|
2788
2789
|
* @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false.
|
|
2789
2790
|
* @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
|
|
2790
|
-
|
|
2791
|
-
on(events: string,
|
|
2791
|
+
*/
|
|
2792
|
+
on(events: string, data : any, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery;
|
|
2792
2793
|
/**
|
|
2793
2794
|
* Attach an event handler function for one or more events to the selected elements.
|
|
2794
2795
|
*
|
|
@@ -3518,24 +3519,11 @@ interface JQuery {
|
|
|
3518
3519
|
/**
|
|
3519
3520
|
* Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.
|
|
3520
3521
|
*
|
|
3521
|
-
* @param
|
|
3522
|
+
* @param selector_element A string containing a selector expression, an element or a jQuery object to match elements against.
|
|
3522
3523
|
* @see {@link https://api.jquery.com/find/#find-selector}
|
|
3523
|
-
*/
|
|
3524
|
-
find(selector: string): JQuery;
|
|
3525
|
-
/**
|
|
3526
|
-
* Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.
|
|
3527
|
-
*
|
|
3528
|
-
* @param element An element to match elements against.
|
|
3529
|
-
* @see {@link https://api.jquery.com/find/#find-element}
|
|
3530
|
-
*/
|
|
3531
|
-
find(element: Element): JQuery;
|
|
3532
|
-
/**
|
|
3533
|
-
* Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.
|
|
3534
|
-
*
|
|
3535
|
-
* @param obj A jQuery object to match elements against.
|
|
3536
3524
|
* @see {@link https://api.jquery.com/find/#find-element}
|
|
3537
3525
|
*/
|
|
3538
|
-
find(
|
|
3526
|
+
find(selector_element: string | Element | JQuery): JQuery;
|
|
3539
3527
|
|
|
3540
3528
|
/**
|
|
3541
3529
|
* Reduce the set of matched elements to the first in the set.
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/jquery",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.57",
|
|
4
4
|
"description": "TypeScript definitions for jQuery",
|
|
5
|
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"contributors": [
|
|
7
8
|
{
|
|
8
9
|
"name": "Boris Yankov",
|
|
9
|
-
"url": "https://github.com/borisyankov
|
|
10
|
+
"url": "https://github.com/borisyankov",
|
|
11
|
+
"githubUsername": "borisyankov"
|
|
10
12
|
},
|
|
11
13
|
{
|
|
12
14
|
"name": "Christian Hoffmeister",
|
|
@@ -90,7 +92,8 @@
|
|
|
90
92
|
},
|
|
91
93
|
{
|
|
92
94
|
"name": "John Reilly",
|
|
93
|
-
"url": "https://github.com/johnnyreilly
|
|
95
|
+
"url": "https://github.com/johnnyreilly",
|
|
96
|
+
"githubUsername": "johnnyreilly"
|
|
94
97
|
},
|
|
95
98
|
{
|
|
96
99
|
"name": "Dick van den Brink",
|
|
@@ -109,13 +112,14 @@
|
|
|
109
112
|
}
|
|
110
113
|
],
|
|
111
114
|
"main": "",
|
|
112
|
-
"types": "index",
|
|
115
|
+
"types": "index.d.ts",
|
|
113
116
|
"repository": {
|
|
114
117
|
"type": "git",
|
|
115
|
-
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
|
|
118
|
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
|
119
|
+
"directory": "types/jquery"
|
|
116
120
|
},
|
|
117
121
|
"scripts": {},
|
|
118
122
|
"dependencies": {},
|
|
119
|
-
"typesPublisherContentHash": "
|
|
120
|
-
"typeScriptVersion": "
|
|
123
|
+
"typesPublisherContentHash": "2c790ef4d93b1f0653bf1da85dcd20d0aead4812f8533150bda6dca6459e69d5",
|
|
124
|
+
"typeScriptVersion": "3.6"
|
|
121
125
|
}
|
jquery v2/README.md
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Installation
|
|
2
|
-
> `npm install --save @types/jquery`
|
|
3
|
-
|
|
4
|
-
# Summary
|
|
5
|
-
This package contains type definitions for jQuery (http://jquery.com/).
|
|
6
|
-
|
|
7
|
-
# Details
|
|
8
|
-
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery/v2
|
|
9
|
-
|
|
10
|
-
Additional Details
|
|
11
|
-
* Last updated: Tue, 15 Jan 2019 23:23:07 GMT
|
|
12
|
-
* Dependencies: none
|
|
13
|
-
* Global values: $, jQuery
|
|
14
|
-
|
|
15
|
-
# Credits
|
|
16
|
-
These definitions were written by 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>, Leonard Thieu <https://github.com/leonard-thieu>.
|