@types/jquery 2.0.56 → 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.0/LICENSE CHANGED
File without changes
jquery v2.0/README.md CHANGED
@@ -8,7 +8,7 @@ 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, 06 Jul 2021 21:33:44 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `$`, `jQuery`
14
14
 
jquery v2.0/index.d.ts CHANGED
@@ -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
  /**
@@ -655,25 +655,25 @@ interface JQueryEventObject extends BaseJQueryEventObject, JQueryCustomEventObje
655
655
  * @deprecated since version 1.9
656
656
  */
657
657
  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;
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;
673
673
  scriptEval? (): boolean;
674
- style?: boolean;
675
- submitBubbles?: boolean;
676
- tbody?: boolean;
674
+ style?: boolean | undefined;
675
+ submitBubbles?: boolean | undefined;
676
+ tbody?: boolean | undefined;
677
677
  }
678
678
 
679
679
  interface JQueryParam {
@@ -741,35 +741,35 @@ interface JQueryAnimationOptions {
741
741
  /**
742
742
  * A string indicating which easing function to use for the transition.
743
743
  */
744
- easing?: string;
744
+ easing?: string | undefined;
745
745
  /**
746
746
  * A function to call once the animation is complete.
747
747
  */
748
- complete?: Function;
748
+ complete?: Function | undefined;
749
749
  /**
750
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.
751
751
  */
752
- step?: (now: number, tween: any) => any;
752
+ step?: ((now: number, tween: any) => any) | undefined;
753
753
  /**
754
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)
755
755
  */
756
- progress?: (animation: JQueryPromise<any>, progress: number, remainingMs: number) => any;
756
+ progress?: ((animation: JQueryPromise<any>, progress: number, remainingMs: number) => any) | undefined;
757
757
  /**
758
758
  * A function to call when the animation begins. (version added: 1.8)
759
759
  */
760
- start?: (animation: JQueryPromise<any>) => any;
760
+ start?: ((animation: JQueryPromise<any>) => any) | undefined;
761
761
  /**
762
762
  * A function to be called when the animation completes (its Promise object is resolved). (version added: 1.8)
763
763
  */
764
- done?: (animation: JQueryPromise<any>, jumpedToEnd: boolean) => any;
764
+ done?: ((animation: JQueryPromise<any>, jumpedToEnd: boolean) => any) | undefined;
765
765
  /**
766
766
  * A function to be called when the animation fails to complete (its Promise object is rejected). (version added: 1.8)
767
767
  */
768
- fail?: (animation: JQueryPromise<any>, jumpedToEnd: boolean) => any;
768
+ fail?: ((animation: JQueryPromise<any>, jumpedToEnd: boolean) => any) | undefined;
769
769
  /**
770
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)
771
771
  */
772
- always?: (animation: JQueryPromise<any>, jumpedToEnd: boolean) => any;
772
+ always?: ((animation: JQueryPromise<any>, jumpedToEnd: boolean) => any) | undefined;
773
773
  /**
774
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.
775
775
  */
@@ -777,7 +777,7 @@ interface JQueryAnimationOptions {
777
777
  /**
778
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)
779
779
  */
780
- specialEasing?: Object;
780
+ specialEasing?: Object | undefined;
781
781
  }
782
782
 
783
783
  interface JQueryEasingFunction {
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@types/jquery",
3
- "version": "2.0.56",
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
  {
@@ -119,6 +120,6 @@
119
120
  },
120
121
  "scripts": {},
121
122
  "dependencies": {},
122
- "typesPublisherContentHash": "7bcf6839fea0a10102c03ed569e6ab3231d389be207f8fe6aa799ce4e5fc2c9c",
123
- "typeScriptVersion": "3.2"
123
+ "typesPublisherContentHash": "2c790ef4d93b1f0653bf1da85dcd20d0aead4812f8533150bda6dca6459e69d5",
124
+ "typeScriptVersion": "3.6"
124
125
  }