@types/jquery 2.0.56 → 2.0.60

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.0/LICENSE CHANGED
File without changes
jquery v2.0/README.md CHANGED
@@ -8,9 +8,9 @@ This package contains type definitions for jQuery (http://jquery.com/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery/v2.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 05 Oct 2020 21:31:41 GMT
11
+ * Last updated: Tue, 11 Jan 2022 22:31:39 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `$`, `jQuery`
14
14
 
15
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).
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).
jquery v2.0/index.d.ts CHANGED
@@ -1,11 +1,10 @@
1
1
  // Type definitions for jQuery 2.0
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
  /**
@@ -655,25 +653,25 @@ interface JQueryEventObject extends BaseJQueryEventObject, JQueryCustomEventObje
655
653
  * @deprecated since version 1.9
656
654
  */
657
655
  interface JQuerySupport {
658
- ajax?: boolean;
659
- boxModel?: boolean;
660
- changeBubbles?: boolean;
661
- checkClone?: boolean;
662
- checkOn?: boolean;
663
- cors?: boolean;
664
- cssFloat?: boolean;
665
- hrefNormalized?: boolean;
666
- htmlSerialize?: boolean;
667
- leadingWhitespace?: boolean;
668
- noCloneChecked?: boolean;
669
- noCloneEvent?: boolean;
670
- opacity?: boolean;
671
- optDisabled?: boolean;
672
- optSelected?: boolean;
656
+ ajax?: boolean | undefined;
657
+ boxModel?: boolean | undefined;
658
+ changeBubbles?: boolean | undefined;
659
+ checkClone?: boolean | undefined;
660
+ checkOn?: boolean | undefined;
661
+ cors?: boolean | undefined;
662
+ cssFloat?: boolean | undefined;
663
+ hrefNormalized?: boolean | undefined;
664
+ htmlSerialize?: boolean | undefined;
665
+ leadingWhitespace?: boolean | undefined;
666
+ noCloneChecked?: boolean | undefined;
667
+ noCloneEvent?: boolean | undefined;
668
+ opacity?: boolean | undefined;
669
+ optDisabled?: boolean | undefined;
670
+ optSelected?: boolean | undefined;
673
671
  scriptEval? (): boolean;
674
- style?: boolean;
675
- submitBubbles?: boolean;
676
- tbody?: boolean;
672
+ style?: boolean | undefined;
673
+ submitBubbles?: boolean | undefined;
674
+ tbody?: boolean | undefined;
677
675
  }
678
676
 
679
677
  interface JQueryParam {
@@ -741,35 +739,35 @@ interface JQueryAnimationOptions {
741
739
  /**
742
740
  * A string indicating which easing function to use for the transition.
743
741
  */
744
- easing?: string;
742
+ easing?: string | undefined;
745
743
  /**
746
744
  * A function to call once the animation is complete.
747
745
  */
748
- complete?: Function;
746
+ complete?: Function | undefined;
749
747
  /**
750
748
  * 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.
751
749
  */
752
- step?: (now: number, tween: any) => any;
750
+ step?: ((now: number, tween: any) => any) | undefined;
753
751
  /**
754
752
  * 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)
755
753
  */
756
- progress?: (animation: JQueryPromise<any>, progress: number, remainingMs: number) => any;
754
+ progress?: ((animation: JQueryPromise<any>, progress: number, remainingMs: number) => any) | undefined;
757
755
  /**
758
756
  * A function to call when the animation begins. (version added: 1.8)
759
757
  */
760
- start?: (animation: JQueryPromise<any>) => any;
758
+ start?: ((animation: JQueryPromise<any>) => any) | undefined;
761
759
  /**
762
760
  * A function to be called when the animation completes (its Promise object is resolved). (version added: 1.8)
763
761
  */
764
- done?: (animation: JQueryPromise<any>, jumpedToEnd: boolean) => any;
762
+ done?: ((animation: JQueryPromise<any>, jumpedToEnd: boolean) => any) | undefined;
765
763
  /**
766
764
  * A function to be called when the animation fails to complete (its Promise object is rejected). (version added: 1.8)
767
765
  */
768
- fail?: (animation: JQueryPromise<any>, jumpedToEnd: boolean) => any;
766
+ fail?: ((animation: JQueryPromise<any>, jumpedToEnd: boolean) => any) | undefined;
769
767
  /**
770
768
  * 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)
771
769
  */
772
- always?: (animation: JQueryPromise<any>, jumpedToEnd: boolean) => any;
770
+ always?: ((animation: JQueryPromise<any>, jumpedToEnd: boolean) => any) | undefined;
773
771
  /**
774
772
  * 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.
775
773
  */
@@ -777,7 +775,7 @@ interface JQueryAnimationOptions {
777
775
  /**
778
776
  * A map of one or more of the CSS properties defined by the properties argument and their corresponding easing functions. (version added: 1.4)
779
777
  */
780
- specialEasing?: Object;
778
+ specialEasing?: Object | undefined;
781
779
  }
782
780
 
783
781
  interface JQueryEasingFunction {
@@ -3633,10 +3631,10 @@ interface JQuery {
3633
3631
  /**
3634
3632
  * Remove elements from the set of matched elements.
3635
3633
  *
3636
- * @param selector A string containing a selector expression to match elements against.
3634
+ * @param selector A string containing a selector expression, or an array of elements to match against the set.
3637
3635
  * @see {@link https://api.jquery.com/not/#not-selector}
3638
3636
  */
3639
- not(selector: string): JQuery;
3637
+ not(selector: string|any[]): JQuery;
3640
3638
  /**
3641
3639
  * Remove elements from the set of matched elements.
3642
3640
  *
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@types/jquery",
3
- "version": "2.0.56",
3
+ "version": "2.0.60",
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
  {
@@ -29,11 +30,6 @@
29
30
  "url": "https://github.com/tasoili",
30
31
  "githubUsername": "tasoili"
31
32
  },
32
- {
33
- "name": "Jason Swearingen",
34
- "url": "https://github.com/jasons-novaleaf",
35
- "githubUsername": "jasons-novaleaf"
36
- },
37
33
  {
38
34
  "name": "Sean Hill",
39
35
  "url": "https://github.com/seanski",
@@ -79,11 +75,6 @@
79
75
  "url": "https://github.com/benjaminjackman",
80
76
  "githubUsername": "benjaminjackman"
81
77
  },
82
- {
83
- "name": "Poul Sorensen",
84
- "url": "https://github.com/s093294",
85
- "githubUsername": "s093294"
86
- },
87
78
  {
88
79
  "name": "Josh Strobl",
89
80
  "url": "https://github.com/JoshStrobl",
@@ -119,6 +110,6 @@
119
110
  },
120
111
  "scripts": {},
121
112
  "dependencies": {},
122
- "typesPublisherContentHash": "7bcf6839fea0a10102c03ed569e6ab3231d389be207f8fe6aa799ce4e5fc2c9c",
123
- "typeScriptVersion": "3.2"
113
+ "typesPublisherContentHash": "f0a8de641081d566b01f5820dd9ff60909478b67519e198c8c69ed042516a229",
114
+ "typeScriptVersion": "3.8"
124
115
  }