@types/jquery 1.10.35 → 1.10.39
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 v1 → jquery v1.10}/LICENSE +21 -21
- jquery v1.10/README.md +16 -0
- {jquery v1 → jquery v1.10}/index.d.ts +57 -59
- {jquery v1 → jquery v1.10}/package.json +11 -17
- jquery v1/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 v1.10/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/v1.
|
|
9
|
+
|
|
10
|
+
### Additional Details
|
|
11
|
+
* Last updated: Tue, 11 Jan 2022 22:31:40 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), [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), [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).
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
// Type definitions for jQuery 1.10
|
|
2
2
|
// Project: http://jquery.com/
|
|
3
|
-
// Definitions by: Boris Yankov <https://github.com/borisyankov
|
|
3
|
+
// Definitions by: Boris Yankov <https://github.com/borisyankov>
|
|
4
4
|
// Christian Hoffmeister <https://github.com/choffmeister>
|
|
5
5
|
// Steve Fenton <https://github.com/Steve-Fenton>
|
|
6
6
|
// Diullei Gomes <https://github.com/Diullei>
|
|
7
7
|
// Tass Iliopoulos <https://github.com/tasoili>
|
|
8
|
-
// Jason Swearingen <https://github.com/jasons-novaleaf>
|
|
9
8
|
// Sean Hill <https://github.com/seanski>
|
|
10
9
|
// Guus Goossens <https://github.com/Guuz>
|
|
11
10
|
// Kelly Summerlin <https://github.com/ksummerlin>
|
|
@@ -15,9 +14,8 @@
|
|
|
15
14
|
// Andrew Gaspar <https://github.com/AndrewGaspar>
|
|
16
15
|
// Seikichi Kondo <https://github.com/seikichi>
|
|
17
16
|
// Benjamin Jackman <https://github.com/benjaminjackman>
|
|
18
|
-
// Poul Sorensen <https://github.com/s093294>
|
|
19
17
|
// Josh Strobl <https://github.com/JoshStrobl>
|
|
20
|
-
// John Reilly <https://github.com/johnnyreilly
|
|
18
|
+
// John Reilly <https://github.com/johnnyreilly>
|
|
21
19
|
// Dick van den Brink <https://github.com/DickvdBrink>
|
|
22
20
|
// Thomas Schulz <https://github.com/King2500>
|
|
23
21
|
// Leonard Thieu <https://github.com/leonard-thieu>
|
|
@@ -51,7 +49,7 @@ interface JQueryAjaxSettings {
|
|
|
51
49
|
/**
|
|
52
50
|
* 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
51
|
*/
|
|
54
|
-
async?: boolean;
|
|
52
|
+
async?: boolean | undefined;
|
|
55
53
|
/**
|
|
56
54
|
* 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
55
|
*/
|
|
@@ -59,7 +57,7 @@ interface JQueryAjaxSettings {
|
|
|
59
57
|
/**
|
|
60
58
|
* 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
59
|
*/
|
|
62
|
-
cache?: boolean;
|
|
60
|
+
cache?: boolean | undefined;
|
|
63
61
|
/**
|
|
64
62
|
* 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
63
|
*/
|
|
@@ -67,7 +65,7 @@ interface JQueryAjaxSettings {
|
|
|
67
65
|
/**
|
|
68
66
|
* An object of string/regular-expression pairs that determine how jQuery will parse the response, given its content type. (version added: 1.5)
|
|
69
67
|
*/
|
|
70
|
-
contents?: { [key: string]: any; };
|
|
68
|
+
contents?: { [key: string]: any; } | undefined;
|
|
71
69
|
//According to jQuery.ajax source code, ajax's option actually allows contentType to set to "false"
|
|
72
70
|
// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/742
|
|
73
71
|
/**
|
|
@@ -81,11 +79,11 @@ interface JQueryAjaxSettings {
|
|
|
81
79
|
/**
|
|
82
80
|
* 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
81
|
*/
|
|
84
|
-
converters?: { [key: string]: any; };
|
|
82
|
+
converters?: { [key: string]: any; } | undefined;
|
|
85
83
|
/**
|
|
86
84
|
* 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
85
|
*/
|
|
88
|
-
crossDomain?: boolean;
|
|
86
|
+
crossDomain?: boolean | undefined;
|
|
89
87
|
/**
|
|
90
88
|
* 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
89
|
*/
|
|
@@ -97,7 +95,7 @@ interface JQueryAjaxSettings {
|
|
|
97
95
|
/**
|
|
98
96
|
* 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
97
|
*/
|
|
100
|
-
dataType?: string;
|
|
98
|
+
dataType?: string | undefined;
|
|
101
99
|
/**
|
|
102
100
|
* 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
101
|
*/
|
|
@@ -105,19 +103,19 @@ interface JQueryAjaxSettings {
|
|
|
105
103
|
/**
|
|
106
104
|
* 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
105
|
*/
|
|
108
|
-
global?: boolean;
|
|
106
|
+
global?: boolean | undefined;
|
|
109
107
|
/**
|
|
110
108
|
* 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
109
|
*/
|
|
112
|
-
headers?: { [key: string]: any; };
|
|
110
|
+
headers?: { [key: string]: any; } | undefined;
|
|
113
111
|
/**
|
|
114
112
|
* 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
113
|
*/
|
|
116
|
-
ifModified?: boolean;
|
|
114
|
+
ifModified?: boolean | undefined;
|
|
117
115
|
/**
|
|
118
116
|
* 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
117
|
*/
|
|
120
|
-
isLocal?: boolean;
|
|
118
|
+
isLocal?: boolean | undefined;
|
|
121
119
|
/**
|
|
122
120
|
* 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
121
|
*/
|
|
@@ -129,27 +127,27 @@ interface JQueryAjaxSettings {
|
|
|
129
127
|
/**
|
|
130
128
|
* The HTTP method to use for the request (e.g. "POST", "GET", "PUT"). (version added: 1.9.0)
|
|
131
129
|
*/
|
|
132
|
-
method?: string;
|
|
130
|
+
method?: string | undefined;
|
|
133
131
|
/**
|
|
134
132
|
* A MIME type to override the XHR MIME type. (version added: 1.5.1)
|
|
135
133
|
*/
|
|
136
|
-
mimeType?: string;
|
|
134
|
+
mimeType?: string | undefined;
|
|
137
135
|
/**
|
|
138
136
|
* A password to be used with XMLHttpRequest in response to an HTTP access authentication request.
|
|
139
137
|
*/
|
|
140
|
-
password?: string;
|
|
138
|
+
password?: string | undefined;
|
|
141
139
|
/**
|
|
142
140
|
* 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
141
|
*/
|
|
144
|
-
processData?: boolean;
|
|
142
|
+
processData?: boolean | undefined;
|
|
145
143
|
/**
|
|
146
144
|
* 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
145
|
*/
|
|
148
|
-
scriptCharset?: string;
|
|
146
|
+
scriptCharset?: string | undefined;
|
|
149
147
|
/**
|
|
150
148
|
* 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
149
|
*/
|
|
152
|
-
statusCode?: { [key: string]: any; };
|
|
150
|
+
statusCode?: { [key: string]: any; } | undefined;
|
|
153
151
|
/**
|
|
154
152
|
* 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
153
|
*/
|
|
@@ -157,23 +155,23 @@ interface JQueryAjaxSettings {
|
|
|
157
155
|
/**
|
|
158
156
|
* 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
157
|
*/
|
|
160
|
-
timeout?: number;
|
|
158
|
+
timeout?: number | undefined;
|
|
161
159
|
/**
|
|
162
160
|
* Set this to true if you wish to use the traditional style of parameter serialization.
|
|
163
161
|
*/
|
|
164
|
-
traditional?: boolean;
|
|
162
|
+
traditional?: boolean | undefined;
|
|
165
163
|
/**
|
|
166
164
|
* 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
165
|
*/
|
|
168
|
-
type?: string;
|
|
166
|
+
type?: string | undefined;
|
|
169
167
|
/**
|
|
170
168
|
* A string containing the URL to which the request is sent.
|
|
171
169
|
*/
|
|
172
|
-
url?: string;
|
|
170
|
+
url?: string | undefined;
|
|
173
171
|
/**
|
|
174
172
|
* A username to be used with XMLHttpRequest in response to an HTTP access authentication request.
|
|
175
173
|
*/
|
|
176
|
-
username?: string;
|
|
174
|
+
username?: string | undefined;
|
|
177
175
|
/**
|
|
178
176
|
* 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
177
|
*/
|
|
@@ -181,7 +179,7 @@ interface JQueryAjaxSettings {
|
|
|
181
179
|
/**
|
|
182
180
|
* 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
181
|
*/
|
|
184
|
-
xhrFields?: { [key: string]: any; };
|
|
182
|
+
xhrFields?: { [key: string]: any; } | undefined;
|
|
185
183
|
}
|
|
186
184
|
|
|
187
185
|
/**
|
|
@@ -646,25 +644,25 @@ interface JQueryEventObject extends BaseJQueryEventObject, JQueryInputEventObjec
|
|
|
646
644
|
* @deprecated since version 1.9
|
|
647
645
|
*/
|
|
648
646
|
interface JQuerySupport {
|
|
649
|
-
ajax?: boolean;
|
|
650
|
-
boxModel?: boolean;
|
|
651
|
-
changeBubbles?: boolean;
|
|
652
|
-
checkClone?: boolean;
|
|
653
|
-
checkOn?: boolean;
|
|
654
|
-
cors?: boolean;
|
|
655
|
-
cssFloat?: boolean;
|
|
656
|
-
hrefNormalized?: boolean;
|
|
657
|
-
htmlSerialize?: boolean;
|
|
658
|
-
leadingWhitespace?: boolean;
|
|
659
|
-
noCloneChecked?: boolean;
|
|
660
|
-
noCloneEvent?: boolean;
|
|
661
|
-
opacity?: boolean;
|
|
662
|
-
optDisabled?: boolean;
|
|
663
|
-
optSelected?: boolean;
|
|
647
|
+
ajax?: boolean | undefined;
|
|
648
|
+
boxModel?: boolean | undefined;
|
|
649
|
+
changeBubbles?: boolean | undefined;
|
|
650
|
+
checkClone?: boolean | undefined;
|
|
651
|
+
checkOn?: boolean | undefined;
|
|
652
|
+
cors?: boolean | undefined;
|
|
653
|
+
cssFloat?: boolean | undefined;
|
|
654
|
+
hrefNormalized?: boolean | undefined;
|
|
655
|
+
htmlSerialize?: boolean | undefined;
|
|
656
|
+
leadingWhitespace?: boolean | undefined;
|
|
657
|
+
noCloneChecked?: boolean | undefined;
|
|
658
|
+
noCloneEvent?: boolean | undefined;
|
|
659
|
+
opacity?: boolean | undefined;
|
|
660
|
+
optDisabled?: boolean | undefined;
|
|
661
|
+
optSelected?: boolean | undefined;
|
|
664
662
|
scriptEval? (): boolean;
|
|
665
|
-
style?: boolean;
|
|
666
|
-
submitBubbles?: boolean;
|
|
667
|
-
tbody?: boolean;
|
|
663
|
+
style?: boolean | undefined;
|
|
664
|
+
submitBubbles?: boolean | undefined;
|
|
665
|
+
tbody?: boolean | undefined;
|
|
668
666
|
}
|
|
669
667
|
|
|
670
668
|
interface JQueryParam {
|
|
@@ -732,35 +730,35 @@ interface JQueryAnimationOptions {
|
|
|
732
730
|
/**
|
|
733
731
|
* A string indicating which easing function to use for the transition.
|
|
734
732
|
*/
|
|
735
|
-
easing?: string;
|
|
733
|
+
easing?: string | undefined;
|
|
736
734
|
/**
|
|
737
735
|
* A function to call once the animation is complete.
|
|
738
736
|
*/
|
|
739
|
-
complete?: Function;
|
|
737
|
+
complete?: Function | undefined;
|
|
740
738
|
/**
|
|
741
739
|
* 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.
|
|
742
740
|
*/
|
|
743
|
-
step?: (now: number, tween: any) => any;
|
|
741
|
+
step?: ((now: number, tween: any) => any) | undefined;
|
|
744
742
|
/**
|
|
745
743
|
* 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)
|
|
746
744
|
*/
|
|
747
|
-
progress?: (animation: JQueryPromise<any>, progress: number, remainingMs: number) => any;
|
|
745
|
+
progress?: ((animation: JQueryPromise<any>, progress: number, remainingMs: number) => any) | undefined;
|
|
748
746
|
/**
|
|
749
747
|
* A function to call when the animation begins. (version added: 1.8)
|
|
750
748
|
*/
|
|
751
|
-
start?: (animation: JQueryPromise<any>) => any;
|
|
749
|
+
start?: ((animation: JQueryPromise<any>) => any) | undefined;
|
|
752
750
|
/**
|
|
753
751
|
* A function to be called when the animation completes (its Promise object is resolved). (version added: 1.8)
|
|
754
752
|
*/
|
|
755
|
-
done?: (animation: JQueryPromise<any>, jumpedToEnd: boolean) => any;
|
|
753
|
+
done?: ((animation: JQueryPromise<any>, jumpedToEnd: boolean) => any) | undefined;
|
|
756
754
|
/**
|
|
757
755
|
* A function to be called when the animation fails to complete (its Promise object is rejected). (version added: 1.8)
|
|
758
756
|
*/
|
|
759
|
-
fail?: (animation: JQueryPromise<any>, jumpedToEnd: boolean) => any;
|
|
757
|
+
fail?: ((animation: JQueryPromise<any>, jumpedToEnd: boolean) => any) | undefined;
|
|
760
758
|
/**
|
|
761
759
|
* 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)
|
|
762
760
|
*/
|
|
763
|
-
always?: (animation: JQueryPromise<any>, jumpedToEnd: boolean) => any;
|
|
761
|
+
always?: ((animation: JQueryPromise<any>, jumpedToEnd: boolean) => any) | undefined;
|
|
764
762
|
/**
|
|
765
763
|
* 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.
|
|
766
764
|
*/
|
|
@@ -768,7 +766,7 @@ interface JQueryAnimationOptions {
|
|
|
768
766
|
/**
|
|
769
767
|
* A map of one or more of the CSS properties defined by the properties argument and their corresponding easing functions. (version added: 1.4)
|
|
770
768
|
*/
|
|
771
|
-
specialEasing?: Object;
|
|
769
|
+
specialEasing?: Object | undefined;
|
|
772
770
|
}
|
|
773
771
|
|
|
774
772
|
interface JQueryEasingFunction {
|
|
@@ -2777,20 +2775,20 @@ interface JQuery {
|
|
|
2777
2775
|
* Attach an event handler function for one or more events to the selected elements.
|
|
2778
2776
|
*
|
|
2779
2777
|
* @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
|
|
2780
|
-
* @param
|
|
2778
|
+
* @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.
|
|
2781
2779
|
* @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.
|
|
2782
2780
|
* @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
|
|
2783
|
-
|
|
2784
|
-
on(events: string,
|
|
2781
|
+
*/
|
|
2782
|
+
on(events: string, selector: string, handler: (eventObject: JQueryEventObject, ...eventData: any[]) => any): JQuery;
|
|
2785
2783
|
/**
|
|
2786
2784
|
* Attach an event handler function for one or more events to the selected elements.
|
|
2787
2785
|
*
|
|
2788
2786
|
* @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
|
|
2789
|
-
* @param
|
|
2787
|
+
* @param data Data to be passed to the handler in event.data when an event is triggered.
|
|
2790
2788
|
* @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.
|
|
2791
2789
|
* @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
|
|
2792
|
-
|
|
2793
|
-
on(events: string,
|
|
2790
|
+
*/
|
|
2791
|
+
on(events: string, data : any, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery;
|
|
2794
2792
|
/**
|
|
2795
2793
|
* Attach an event handler function for one or more events to the selected elements.
|
|
2796
2794
|
*
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/jquery",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.39",
|
|
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",
|
|
@@ -28,11 +30,6 @@
|
|
|
28
30
|
"url": "https://github.com/tasoili",
|
|
29
31
|
"githubUsername": "tasoili"
|
|
30
32
|
},
|
|
31
|
-
{
|
|
32
|
-
"name": "Jason Swearingen",
|
|
33
|
-
"url": "https://github.com/jasons-novaleaf",
|
|
34
|
-
"githubUsername": "jasons-novaleaf"
|
|
35
|
-
},
|
|
36
33
|
{
|
|
37
34
|
"name": "Sean Hill",
|
|
38
35
|
"url": "https://github.com/seanski",
|
|
@@ -78,11 +75,6 @@
|
|
|
78
75
|
"url": "https://github.com/benjaminjackman",
|
|
79
76
|
"githubUsername": "benjaminjackman"
|
|
80
77
|
},
|
|
81
|
-
{
|
|
82
|
-
"name": "Poul Sorensen",
|
|
83
|
-
"url": "https://github.com/s093294",
|
|
84
|
-
"githubUsername": "s093294"
|
|
85
|
-
},
|
|
86
78
|
{
|
|
87
79
|
"name": "Josh Strobl",
|
|
88
80
|
"url": "https://github.com/JoshStrobl",
|
|
@@ -90,7 +82,8 @@
|
|
|
90
82
|
},
|
|
91
83
|
{
|
|
92
84
|
"name": "John Reilly",
|
|
93
|
-
"url": "https://github.com/johnnyreilly
|
|
85
|
+
"url": "https://github.com/johnnyreilly",
|
|
86
|
+
"githubUsername": "johnnyreilly"
|
|
94
87
|
},
|
|
95
88
|
{
|
|
96
89
|
"name": "Dick van den Brink",
|
|
@@ -109,13 +102,14 @@
|
|
|
109
102
|
}
|
|
110
103
|
],
|
|
111
104
|
"main": "",
|
|
112
|
-
"types": "index",
|
|
105
|
+
"types": "index.d.ts",
|
|
113
106
|
"repository": {
|
|
114
107
|
"type": "git",
|
|
115
|
-
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
|
|
108
|
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
|
109
|
+
"directory": "types/jquery"
|
|
116
110
|
},
|
|
117
111
|
"scripts": {},
|
|
118
112
|
"dependencies": {},
|
|
119
|
-
"typesPublisherContentHash": "
|
|
120
|
-
"typeScriptVersion": "
|
|
113
|
+
"typesPublisherContentHash": "afd0ee5ab8fe297fc7f33b0b2f46af6174beb0e5a1e9248868dfb7c44226659d",
|
|
114
|
+
"typeScriptVersion": "3.8"
|
|
121
115
|
}
|
jquery v1/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/v1
|
|
9
|
-
|
|
10
|
-
Additional Details
|
|
11
|
-
* Last updated: Tue, 25 Dec 2018 05:51:31 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>.
|