@types/jquery 2.0.61 → 2.0.62
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 +0 -0
- jquery v2.0/README.md +1 -1
- jquery v2.0/index.d.ts +246 -132
- jquery v2.0/package.json +3 -3
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: Fri,
|
|
11
|
+
* Last updated: Fri, 15 Sep 2023 20:36:37 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `$`, `jQuery`
|
|
14
14
|
|
jquery v2.0/index.d.ts
CHANGED
|
@@ -36,7 +36,6 @@ See the Apache Version 2.0 License for specific language governing permissions
|
|
|
36
36
|
and limitations under the License.
|
|
37
37
|
***************************************************************************** */
|
|
38
38
|
|
|
39
|
-
|
|
40
39
|
/**
|
|
41
40
|
* Interface for the AJAX setting that will configure the AJAX request
|
|
42
41
|
* @see {@link https://api.jquery.com/jQuery.ajax/#jQuery-ajax-settings}
|
|
@@ -53,7 +52,7 @@ interface JQueryAjaxSettings {
|
|
|
53
52
|
/**
|
|
54
53
|
* 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.
|
|
55
54
|
*/
|
|
56
|
-
beforeSend?
|
|
55
|
+
beforeSend?(jqXHR: JQueryXHR, settings: JQueryAjaxSettings): any;
|
|
57
56
|
/**
|
|
58
57
|
* 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.
|
|
59
58
|
*/
|
|
@@ -61,12 +60,12 @@ interface JQueryAjaxSettings {
|
|
|
61
60
|
/**
|
|
62
61
|
* 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.
|
|
63
62
|
*/
|
|
64
|
-
complete?
|
|
63
|
+
complete?(jqXHR: JQueryXHR, textStatus: string): any;
|
|
65
64
|
/**
|
|
66
65
|
* An object of string/regular-expression pairs that determine how jQuery will parse the response, given its content type. (version added: 1.5)
|
|
67
66
|
*/
|
|
68
|
-
contents?: { [key: string]: any
|
|
69
|
-
//According to jQuery.ajax source code, ajax's option actually allows contentType to set to "false"
|
|
67
|
+
contents?: { [key: string]: any } | undefined;
|
|
68
|
+
// According to jQuery.ajax source code, ajax's option actually allows contentType to set to "false"
|
|
70
69
|
// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/742
|
|
71
70
|
/**
|
|
72
71
|
* When sending data to the server, use this content type. Default is "application/x-www-form-urlencoded; charset=UTF-8", which is fine for most cases. If you explicitly pass in a content-type to $.ajax(), then it is always sent to the server (even if no data is sent). The W3C XMLHttpRequest specification dictates that the charset is always UTF-8; specifying another charset will not force the browser to change the encoding.
|
|
@@ -79,7 +78,7 @@ interface JQueryAjaxSettings {
|
|
|
79
78
|
/**
|
|
80
79
|
* 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)
|
|
81
80
|
*/
|
|
82
|
-
converters?: { [key: string]: any
|
|
81
|
+
converters?: { [key: string]: any } | undefined;
|
|
83
82
|
/**
|
|
84
83
|
* 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)
|
|
85
84
|
*/
|
|
@@ -91,7 +90,7 @@ interface JQueryAjaxSettings {
|
|
|
91
90
|
/**
|
|
92
91
|
* A function to be used to handle the raw response data of XMLHttpRequest.This is a pre-filtering function to sanitize the response. You should return the sanitized data. The function accepts two arguments: The raw data returned from the server and the 'dataType' parameter.
|
|
93
92
|
*/
|
|
94
|
-
dataFilter?
|
|
93
|
+
dataFilter?(data: any, ty: any): any;
|
|
95
94
|
/**
|
|
96
95
|
* 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).
|
|
97
96
|
*/
|
|
@@ -99,7 +98,7 @@ interface JQueryAjaxSettings {
|
|
|
99
98
|
/**
|
|
100
99
|
* 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.
|
|
101
100
|
*/
|
|
102
|
-
error?
|
|
101
|
+
error?(jqXHR: JQueryXHR, textStatus: string, errorThrown: string): any;
|
|
103
102
|
/**
|
|
104
103
|
* 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.
|
|
105
104
|
*/
|
|
@@ -107,7 +106,7 @@ interface JQueryAjaxSettings {
|
|
|
107
106
|
/**
|
|
108
107
|
* 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)
|
|
109
108
|
*/
|
|
110
|
-
headers?: { [key: string]: any
|
|
109
|
+
headers?: { [key: string]: any } | undefined;
|
|
111
110
|
/**
|
|
112
111
|
* 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.
|
|
113
112
|
*/
|
|
@@ -147,11 +146,11 @@ interface JQueryAjaxSettings {
|
|
|
147
146
|
/**
|
|
148
147
|
* 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)
|
|
149
148
|
*/
|
|
150
|
-
statusCode?: { [key: string]: any
|
|
149
|
+
statusCode?: { [key: string]: any } | undefined;
|
|
151
150
|
/**
|
|
152
151
|
* 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.
|
|
153
152
|
*/
|
|
154
|
-
success?
|
|
153
|
+
success?(data: any, textStatus: string, jqXHR: JQueryXHR): any;
|
|
155
154
|
/**
|
|
156
155
|
* 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.
|
|
157
156
|
*/
|
|
@@ -179,7 +178,7 @@ interface JQueryAjaxSettings {
|
|
|
179
178
|
/**
|
|
180
179
|
* 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)
|
|
181
180
|
*/
|
|
182
|
-
xhrFields?: { [key: string]: any
|
|
181
|
+
xhrFields?: { [key: string]: any } | undefined;
|
|
183
182
|
}
|
|
184
183
|
|
|
185
184
|
/**
|
|
@@ -200,7 +199,10 @@ interface JQueryXHR extends XMLHttpRequest, JQueryPromise<any> {
|
|
|
200
199
|
/**
|
|
201
200
|
* Incorporates the functionality of the .done() and .fail() methods, allowing (as of jQuery 1.8) the underlying Promise to be manipulated. Refer to deferred.then() for implementation details.
|
|
202
201
|
*/
|
|
203
|
-
then<R>(
|
|
202
|
+
then<R>(
|
|
203
|
+
doneCallback: (data: any, textStatus: string, jqXHR: JQueryXHR) => R | JQueryPromise<R>,
|
|
204
|
+
failCallback?: (jqXHR: JQueryXHR, textStatus: string, errorThrown: any) => void,
|
|
205
|
+
): JQueryPromise<R>;
|
|
204
206
|
/**
|
|
205
207
|
* Property containing the parsed response if the response content type is json
|
|
206
208
|
*/
|
|
@@ -319,7 +321,11 @@ interface JQueryGenericPromise<T> {
|
|
|
319
321
|
* @param failFilter An optional function that is called when the Deferred is rejected.
|
|
320
322
|
* @see {@link https://api.jquery.com/deferred.then/#deferred-then-doneFilter-failFilter-progressFilter}
|
|
321
323
|
*/
|
|
322
|
-
then<U>(
|
|
324
|
+
then<U>(
|
|
325
|
+
doneFilter: (value?: T, ...values: any[]) => U | JQueryPromise<U>,
|
|
326
|
+
failFilter?: (...reasons: any[]) => any,
|
|
327
|
+
progressFilter?: (...progression: any[]) => any,
|
|
328
|
+
): JQueryPromise<U>;
|
|
323
329
|
|
|
324
330
|
/**
|
|
325
331
|
* Add handlers to be called when the Deferred object is resolved, rejected, or still in progress.
|
|
@@ -328,7 +334,11 @@ interface JQueryGenericPromise<T> {
|
|
|
328
334
|
* @param failFilter An optional function that is called when the Deferred is rejected.
|
|
329
335
|
* @see {@link https://api.jquery.com/deferred.then/#deferred-then-doneFilter-failFilter-progressFilter}
|
|
330
336
|
*/
|
|
331
|
-
then(
|
|
337
|
+
then(
|
|
338
|
+
doneFilter: (value?: T, ...values: any[]) => void,
|
|
339
|
+
failFilter?: (...reasons: any[]) => any,
|
|
340
|
+
progressFilter?: (...progression: any[]) => any,
|
|
341
|
+
): JQueryPromise<void>;
|
|
332
342
|
}
|
|
333
343
|
|
|
334
344
|
/**
|
|
@@ -339,7 +349,10 @@ interface JQueryPromiseCallback<T> {
|
|
|
339
349
|
}
|
|
340
350
|
|
|
341
351
|
interface JQueryPromiseOperator<T, U> {
|
|
342
|
-
(
|
|
352
|
+
(
|
|
353
|
+
callback1: JQueryPromiseCallback<T> | JQueryPromiseCallback<T>[],
|
|
354
|
+
...callbacksN: Array<JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[]>
|
|
355
|
+
): JQueryPromise<U>;
|
|
343
356
|
}
|
|
344
357
|
|
|
345
358
|
/**
|
|
@@ -359,7 +372,10 @@ interface JQueryPromise<T> extends JQueryGenericPromise<T> {
|
|
|
359
372
|
* @param alwaysCallbackN Optional additional functions, or arrays of functions, that are called when the Deferred is resolved or rejected.
|
|
360
373
|
* @see {@link https://api.jquery.com/deferred.always/}
|
|
361
374
|
*/
|
|
362
|
-
always(
|
|
375
|
+
always(
|
|
376
|
+
alwaysCallback1?: JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[],
|
|
377
|
+
...alwaysCallbackN: Array<JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[]>
|
|
378
|
+
): JQueryPromise<T>;
|
|
363
379
|
/**
|
|
364
380
|
* Add handlers to be called when the Deferred object is resolved.
|
|
365
381
|
*
|
|
@@ -367,7 +383,10 @@ interface JQueryPromise<T> extends JQueryGenericPromise<T> {
|
|
|
367
383
|
* @param doneCallbackN Optional additional functions, or arrays of functions, that are called when the Deferred is resolved.
|
|
368
384
|
* @see {@link https://api.jquery.com/deferred.done/}
|
|
369
385
|
*/
|
|
370
|
-
done(
|
|
386
|
+
done(
|
|
387
|
+
doneCallback1?: JQueryPromiseCallback<T> | JQueryPromiseCallback<T>[],
|
|
388
|
+
...doneCallbackN: Array<JQueryPromiseCallback<T> | JQueryPromiseCallback<T>[]>
|
|
389
|
+
): JQueryPromise<T>;
|
|
371
390
|
/**
|
|
372
391
|
* Add handlers to be called when the Deferred object is rejected.
|
|
373
392
|
*
|
|
@@ -375,7 +394,10 @@ interface JQueryPromise<T> extends JQueryGenericPromise<T> {
|
|
|
375
394
|
* @param failCallbackN Optional additional functions, or arrays of functions, that are called when the Deferred is rejected.
|
|
376
395
|
* @see {@link https://api.jquery.com/deferred.fail/}
|
|
377
396
|
*/
|
|
378
|
-
fail(
|
|
397
|
+
fail(
|
|
398
|
+
failCallback1?: JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[],
|
|
399
|
+
...failCallbackN: Array<JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[]>
|
|
400
|
+
): JQueryPromise<T>;
|
|
379
401
|
/**
|
|
380
402
|
* Add handlers to be called when the Deferred object generates progress notifications.
|
|
381
403
|
*
|
|
@@ -383,10 +405,17 @@ interface JQueryPromise<T> extends JQueryGenericPromise<T> {
|
|
|
383
405
|
* @param progressCallbackN Optional additional functions, or arrays of functions, to be called when the Deferred generates progress notifications.
|
|
384
406
|
* @see {@link https://api.jquery.com/deferred.progress/}
|
|
385
407
|
*/
|
|
386
|
-
progress(
|
|
408
|
+
progress(
|
|
409
|
+
progressCallback1?: JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[],
|
|
410
|
+
...progressCallbackN: Array<JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[]>
|
|
411
|
+
): JQueryPromise<T>;
|
|
387
412
|
|
|
388
413
|
// Deprecated - given no typings
|
|
389
|
-
pipe(
|
|
414
|
+
pipe(
|
|
415
|
+
doneFilter?: (x: any) => any,
|
|
416
|
+
failFilter?: (x: any) => any,
|
|
417
|
+
progressFilter?: (x: any) => any,
|
|
418
|
+
): JQueryPromise<any>;
|
|
390
419
|
|
|
391
420
|
/**
|
|
392
421
|
* Return a Deferred's Promise object.
|
|
@@ -414,7 +443,10 @@ interface JQueryDeferred<T> extends JQueryGenericPromise<T> {
|
|
|
414
443
|
* @param alwaysCallbackN Optional additional functions, or arrays of functions, that are called when the Deferred is resolved or rejected.
|
|
415
444
|
* @see {@link https://api.jquery.com/deferred.always/}
|
|
416
445
|
*/
|
|
417
|
-
always(
|
|
446
|
+
always(
|
|
447
|
+
alwaysCallback1?: JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[],
|
|
448
|
+
...alwaysCallbackN: Array<JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[]>
|
|
449
|
+
): JQueryDeferred<T>;
|
|
418
450
|
/**
|
|
419
451
|
* Add handlers to be called when the Deferred object is resolved.
|
|
420
452
|
*
|
|
@@ -422,7 +454,10 @@ interface JQueryDeferred<T> extends JQueryGenericPromise<T> {
|
|
|
422
454
|
* @param doneCallbackN Optional additional functions, or arrays of functions, that are called when the Deferred is resolved.
|
|
423
455
|
* @see {@link https://api.jquery.com/deferred.done/}
|
|
424
456
|
*/
|
|
425
|
-
done(
|
|
457
|
+
done(
|
|
458
|
+
doneCallback1?: JQueryPromiseCallback<T> | JQueryPromiseCallback<T>[],
|
|
459
|
+
...doneCallbackN: Array<JQueryPromiseCallback<T> | JQueryPromiseCallback<T>[]>
|
|
460
|
+
): JQueryDeferred<T>;
|
|
426
461
|
/**
|
|
427
462
|
* Add handlers to be called when the Deferred object is rejected.
|
|
428
463
|
*
|
|
@@ -430,7 +465,10 @@ interface JQueryDeferred<T> extends JQueryGenericPromise<T> {
|
|
|
430
465
|
* @param failCallbackN Optional additional functions, or arrays of functions, that are called when the Deferred is rejected.
|
|
431
466
|
* @see {@link https://api.jquery.com/deferred.fail/}
|
|
432
467
|
*/
|
|
433
|
-
fail(
|
|
468
|
+
fail(
|
|
469
|
+
failCallback1?: JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[],
|
|
470
|
+
...failCallbackN: Array<JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[]>
|
|
471
|
+
): JQueryDeferred<T>;
|
|
434
472
|
/**
|
|
435
473
|
* Add handlers to be called when the Deferred object generates progress notifications.
|
|
436
474
|
*
|
|
@@ -438,7 +476,10 @@ interface JQueryDeferred<T> extends JQueryGenericPromise<T> {
|
|
|
438
476
|
* @param progressCallbackN Optional additional functions, or arrays of functions, to be called when the Deferred generates progress notifications.
|
|
439
477
|
* @see {@link https://api.jquery.com/deferred.progress/}
|
|
440
478
|
*/
|
|
441
|
-
progress(
|
|
479
|
+
progress(
|
|
480
|
+
progressCallback1?: JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[],
|
|
481
|
+
...progressCallbackN: Array<JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[]>
|
|
482
|
+
): JQueryDeferred<T>;
|
|
442
483
|
|
|
443
484
|
/**
|
|
444
485
|
* Call the progressCallbacks on a Deferred object with the given args.
|
|
@@ -500,7 +541,11 @@ interface JQueryDeferred<T> extends JQueryGenericPromise<T> {
|
|
|
500
541
|
promise(target?: any): JQueryPromise<T>;
|
|
501
542
|
|
|
502
543
|
// Deprecated - given no typings
|
|
503
|
-
pipe(
|
|
544
|
+
pipe(
|
|
545
|
+
doneFilter?: (x: any) => any,
|
|
546
|
+
failFilter?: (x: any) => any,
|
|
547
|
+
progressFilter?: (x: any) => any,
|
|
548
|
+
): JQueryPromise<any>;
|
|
504
549
|
}
|
|
505
550
|
|
|
506
551
|
/**
|
|
@@ -639,7 +684,14 @@ interface JQueryKeyEventObject extends JQueryInputEventObject {
|
|
|
639
684
|
keyCode: number;
|
|
640
685
|
}
|
|
641
686
|
|
|
642
|
-
interface JQueryEventObject
|
|
687
|
+
interface JQueryEventObject
|
|
688
|
+
extends
|
|
689
|
+
BaseJQueryEventObject,
|
|
690
|
+
JQueryCustomEventObject,
|
|
691
|
+
JQueryInputEventObject,
|
|
692
|
+
JQueryMouseEventObject,
|
|
693
|
+
JQueryKeyEventObject
|
|
694
|
+
{
|
|
643
695
|
}
|
|
644
696
|
|
|
645
697
|
/**
|
|
@@ -668,7 +720,7 @@ interface JQuerySupport {
|
|
|
668
720
|
opacity?: boolean | undefined;
|
|
669
721
|
optDisabled?: boolean | undefined;
|
|
670
722
|
optSelected?: boolean | undefined;
|
|
671
|
-
scriptEval?
|
|
723
|
+
scriptEval?(): boolean;
|
|
672
724
|
style?: boolean | undefined;
|
|
673
725
|
submitBubbles?: boolean | undefined;
|
|
674
726
|
tbody?: boolean | undefined;
|
|
@@ -699,7 +751,7 @@ interface JQueryParam {
|
|
|
699
751
|
*/
|
|
700
752
|
interface JQueryEventConstructor {
|
|
701
753
|
(name: string, eventProperties?: any): JQueryEventObject;
|
|
702
|
-
new
|
|
754
|
+
new(name: string, eventProperties?: any): JQueryEventObject;
|
|
703
755
|
}
|
|
704
756
|
|
|
705
757
|
/**
|
|
@@ -779,11 +831,11 @@ interface JQueryAnimationOptions {
|
|
|
779
831
|
}
|
|
780
832
|
|
|
781
833
|
interface JQueryEasingFunction {
|
|
782
|
-
(
|
|
834
|
+
(percent: number): number;
|
|
783
835
|
}
|
|
784
836
|
|
|
785
837
|
interface JQueryEasingFunctions {
|
|
786
|
-
[
|
|
838
|
+
[name: string]: JQueryEasingFunction;
|
|
787
839
|
linear: JQueryEasingFunction;
|
|
788
840
|
swing: JQueryEasingFunction;
|
|
789
841
|
}
|
|
@@ -794,7 +846,6 @@ interface JQueryEasingFunctions {
|
|
|
794
846
|
* @see {@link https://api.jquery.com/Types/#jQuery}
|
|
795
847
|
*/
|
|
796
848
|
interface JQueryStatic {
|
|
797
|
-
|
|
798
849
|
/**
|
|
799
850
|
* Perform an asynchronous HTTP (Ajax) request.
|
|
800
851
|
*
|
|
@@ -818,7 +869,10 @@ interface JQueryStatic {
|
|
|
818
869
|
* @param handler A handler to set default values for future Ajax requests.
|
|
819
870
|
* @see {@link https://api.jquery.com/jQuery.ajaxPrefilter/}
|
|
820
871
|
*/
|
|
821
|
-
ajaxPrefilter(
|
|
872
|
+
ajaxPrefilter(
|
|
873
|
+
dataTypes: string,
|
|
874
|
+
handler: (opts: any, originalOpts: JQueryAjaxSettings, jqXHR: JQueryXHR) => any,
|
|
875
|
+
): void;
|
|
822
876
|
/**
|
|
823
877
|
* Handle custom Ajax options or modify existing options before each request is sent and before they are processed by $.ajax().
|
|
824
878
|
*
|
|
@@ -827,23 +881,26 @@ interface JQueryStatic {
|
|
|
827
881
|
*/
|
|
828
882
|
ajaxPrefilter(handler: (opts: any, originalOpts: JQueryAjaxSettings, jqXHR: JQueryXHR) => any): void;
|
|
829
883
|
|
|
830
|
-
|
|
884
|
+
/**
|
|
831
885
|
* Creates an object that handles the actual transmission of Ajax data.
|
|
832
886
|
*
|
|
833
887
|
* @param dataType A string identifying the data type to use.
|
|
834
888
|
* @param handler A handler to return the new transport object to use with the data type provided in the first argument.
|
|
835
889
|
* @see {@link https://api.jquery.com/jQuery.ajaxTransport/}
|
|
836
890
|
*/
|
|
837
|
-
ajaxTransport(
|
|
891
|
+
ajaxTransport(
|
|
892
|
+
dataType: string,
|
|
893
|
+
handler: (opts: any, originalOpts: JQueryAjaxSettings, jqXHR: JQueryXHR) => any,
|
|
894
|
+
): void;
|
|
838
895
|
|
|
839
896
|
ajaxSettings: JQueryAjaxSettings;
|
|
840
897
|
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
898
|
+
/**
|
|
899
|
+
* Set default values for future Ajax requests. Its use is not recommended.
|
|
900
|
+
*
|
|
901
|
+
* @param options A set of key/value pairs that configure the default Ajax request. All options are optional.
|
|
902
|
+
* @see {@link https://api.jquery.com/jQuery.ajaxSetup/}
|
|
903
|
+
*/
|
|
847
904
|
ajaxSetup(options: JQueryAjaxSettings): void;
|
|
848
905
|
|
|
849
906
|
/**
|
|
@@ -864,14 +921,19 @@ interface JQueryStatic {
|
|
|
864
921
|
* @param dataType The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html).
|
|
865
922
|
* @see {@link https://api.jquery.com/jQuery.get/#jQuery-get-url-data-success-dataType}
|
|
866
923
|
*/
|
|
867
|
-
get(
|
|
924
|
+
get(
|
|
925
|
+
url: string,
|
|
926
|
+
data?: Object | string,
|
|
927
|
+
success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any,
|
|
928
|
+
dataType?: string,
|
|
929
|
+
): JQueryXHR;
|
|
868
930
|
/**
|
|
869
931
|
* Load data from the server using a HTTP GET request.
|
|
870
932
|
*
|
|
871
933
|
* @param settings The JQueryAjaxSettings to be used for the request
|
|
872
934
|
* @see {@link https://api.jquery.com/jQuery.get/#jQuery-get-settings}
|
|
873
935
|
*/
|
|
874
|
-
get(settings
|
|
936
|
+
get(settings: JQueryAjaxSettings): JQueryXHR;
|
|
875
937
|
/**
|
|
876
938
|
* Load JSON-encoded data from the server using a GET HTTP request.
|
|
877
939
|
*
|
|
@@ -888,7 +950,11 @@ interface JQueryStatic {
|
|
|
888
950
|
* @param success A callback function that is executed if the request succeeds.
|
|
889
951
|
* @see {@link https://api.jquery.com/jQuery.getJSON/}
|
|
890
952
|
*/
|
|
891
|
-
getJSON(
|
|
953
|
+
getJSON(
|
|
954
|
+
url: string,
|
|
955
|
+
data?: Object | string,
|
|
956
|
+
success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any,
|
|
957
|
+
): JQueryXHR;
|
|
892
958
|
/**
|
|
893
959
|
* Load a JavaScript file from the server using a GET HTTP request, then execute it.
|
|
894
960
|
*
|
|
@@ -923,14 +989,19 @@ interface JQueryStatic {
|
|
|
923
989
|
* @param dataType The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).
|
|
924
990
|
* @see {@link https://api.jquery.com/jQuery.post/#jQuery-post-url-data-success-dataType}
|
|
925
991
|
*/
|
|
926
|
-
post(
|
|
992
|
+
post(
|
|
993
|
+
url: string,
|
|
994
|
+
data?: Object | string,
|
|
995
|
+
success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any,
|
|
996
|
+
dataType?: string,
|
|
997
|
+
): JQueryXHR;
|
|
927
998
|
/**
|
|
928
999
|
* Load data from the server using a HTTP POST request.
|
|
929
1000
|
*
|
|
930
1001
|
* @param settings The JQueryAjaxSettings to be used for the request
|
|
931
1002
|
* @see {@link https://api.jquery.com/jQuery.post/#jQuery-post-settings}
|
|
932
1003
|
*/
|
|
933
|
-
post(settings
|
|
1004
|
+
post(settings: JQueryAjaxSettings): JQueryXHR;
|
|
934
1005
|
/**
|
|
935
1006
|
* A multi-purpose callbacks list object that provides a powerful way to manage callback lists.
|
|
936
1007
|
*
|
|
@@ -954,7 +1025,7 @@ interface JQueryStatic {
|
|
|
954
1025
|
* @param context A DOM Element, Document, or jQuery to use as context
|
|
955
1026
|
* @see {@link https://api.jquery.com/jQuery/#jQuery-selector-context}
|
|
956
1027
|
*/
|
|
957
|
-
(selector: string, context?: Element|JQuery): JQuery;
|
|
1028
|
+
(selector: string, context?: Element | JQuery): JQuery;
|
|
958
1029
|
|
|
959
1030
|
/**
|
|
960
1031
|
* Accepts a string containing a CSS selector which is then used to match a set of elements.
|
|
@@ -1034,13 +1105,13 @@ interface JQueryStatic {
|
|
|
1034
1105
|
* @param deferreds One or more Deferred objects, or plain JavaScript objects.
|
|
1035
1106
|
* @see {@link https://api.jquery.com/jQuery.when/}
|
|
1036
1107
|
*/
|
|
1037
|
-
when<T>(...deferreds: Array<T|JQueryPromise<T
|
|
1108
|
+
when<T>(...deferreds: Array<T | JQueryPromise<T> /* as JQueryDeferred<T> */>): JQueryPromise<T>;
|
|
1038
1109
|
|
|
1039
1110
|
/**
|
|
1040
1111
|
* Hook directly into jQuery to override how particular CSS properties are retrieved or set, normalize CSS property naming, or create custom properties.
|
|
1041
1112
|
* @see {@link https://api.jquery.com/jQuery.cssHooks/}
|
|
1042
1113
|
*/
|
|
1043
|
-
cssHooks: { [key: string]: any
|
|
1114
|
+
cssHooks: { [key: string]: any };
|
|
1044
1115
|
|
|
1045
1116
|
/**
|
|
1046
1117
|
* An object containing all CSS properties that may be used without a unit. The .css() method uses this object to see if it may append px to unitless values.
|
|
@@ -1148,7 +1219,7 @@ interface JQueryStatic {
|
|
|
1148
1219
|
*/
|
|
1149
1220
|
interval: number;
|
|
1150
1221
|
stop: () => void;
|
|
1151
|
-
speeds: { slow: number; fast: number
|
|
1222
|
+
speeds: { slow: number; fast: number };
|
|
1152
1223
|
/**
|
|
1153
1224
|
* Globally disable all animations.
|
|
1154
1225
|
* @see {@link https://api.jquery.com/jQuery.fx.off/}
|
|
@@ -1213,8 +1284,8 @@ interface JQueryStatic {
|
|
|
1213
1284
|
*/
|
|
1214
1285
|
each<T>(
|
|
1215
1286
|
collection: T[],
|
|
1216
|
-
callback: (indexInArray: number, valueOfElement: T) => boolean | void
|
|
1217
|
-
|
|
1287
|
+
callback: (indexInArray: number, valueOfElement: T) => boolean | void,
|
|
1288
|
+
): T[];
|
|
1218
1289
|
|
|
1219
1290
|
/**
|
|
1220
1291
|
* A generic iterator function, which can be used to seamlessly iterate over both objects and arrays. Arrays and array-like objects with a length property (such as a function's arguments object) are iterated by numeric index, from 0 to length-1. Other objects are iterated via their named properties.
|
|
@@ -1227,8 +1298,8 @@ interface JQueryStatic {
|
|
|
1227
1298
|
each<T extends Object>(
|
|
1228
1299
|
collection: T,
|
|
1229
1300
|
// TODO: `(keyInObject: keyof T, valueOfElement: T[keyof T])`, when TypeScript 2.1 allowed in repository
|
|
1230
|
-
callback: (keyInObject: string, valueOfElement: any) => boolean | void
|
|
1231
|
-
|
|
1301
|
+
callback: (keyInObject: string, valueOfElement: any) => boolean | void,
|
|
1302
|
+
): T;
|
|
1232
1303
|
|
|
1233
1304
|
/**
|
|
1234
1305
|
* Merge the contents of two or more objects together into the first object.
|
|
@@ -1404,7 +1475,21 @@ interface JQueryStatic {
|
|
|
1404
1475
|
* @param obj Object to get the internal JavaScript [[Class]] of.
|
|
1405
1476
|
* @see {@link https://api.jquery.com/jQuery.type/}
|
|
1406
1477
|
*/
|
|
1407
|
-
type(
|
|
1478
|
+
type(
|
|
1479
|
+
obj: any,
|
|
1480
|
+
):
|
|
1481
|
+
| "array"
|
|
1482
|
+
| "boolean"
|
|
1483
|
+
| "date"
|
|
1484
|
+
| "error"
|
|
1485
|
+
| "function"
|
|
1486
|
+
| "null"
|
|
1487
|
+
| "number"
|
|
1488
|
+
| "object"
|
|
1489
|
+
| "regexp"
|
|
1490
|
+
| "string"
|
|
1491
|
+
| "symbol"
|
|
1492
|
+
| "undefined";
|
|
1408
1493
|
|
|
1409
1494
|
/**
|
|
1410
1495
|
* Sorts an array of DOM elements, in place, with the duplicates removed. Note that this only works on arrays of DOM elements, not strings or numbers.
|
|
@@ -1444,7 +1529,14 @@ interface JQuery {
|
|
|
1444
1529
|
* @param handler The function to be invoked.
|
|
1445
1530
|
* @see {@link https://api.jquery.com/ajaxError/}
|
|
1446
1531
|
*/
|
|
1447
|
-
ajaxError(
|
|
1532
|
+
ajaxError(
|
|
1533
|
+
handler: (
|
|
1534
|
+
event: JQueryEventObject,
|
|
1535
|
+
jqXHR: JQueryXHR,
|
|
1536
|
+
ajaxSettings: JQueryAjaxSettings,
|
|
1537
|
+
thrownError: any,
|
|
1538
|
+
) => any,
|
|
1539
|
+
): JQuery;
|
|
1448
1540
|
/**
|
|
1449
1541
|
* Attach a function to be executed before an Ajax request is sent. This is an Ajax Event.
|
|
1450
1542
|
*
|
|
@@ -1472,7 +1564,9 @@ interface JQuery {
|
|
|
1472
1564
|
* @param handler The function to be invoked.
|
|
1473
1565
|
* @see {@link https://api.jquery.com/ajaxSuccess/}
|
|
1474
1566
|
*/
|
|
1475
|
-
ajaxSuccess(
|
|
1567
|
+
ajaxSuccess(
|
|
1568
|
+
handler: (event: JQueryEventObject, XMLHttpRequest: XMLHttpRequest, ajaxOptions: JQueryAjaxSettings) => any,
|
|
1569
|
+
): JQuery;
|
|
1476
1570
|
|
|
1477
1571
|
/**
|
|
1478
1572
|
* Load data from the server and place the returned HTML into the matched element.
|
|
@@ -1482,7 +1576,11 @@ interface JQuery {
|
|
|
1482
1576
|
* @param complete A callback function that is executed when the request completes.
|
|
1483
1577
|
* @see {@link https://api.jquery.com/load/}
|
|
1484
1578
|
*/
|
|
1485
|
-
load(
|
|
1579
|
+
load(
|
|
1580
|
+
url: string,
|
|
1581
|
+
data?: string | Object,
|
|
1582
|
+
complete?: (responseText: string, textStatus: string, XMLHttpRequest: XMLHttpRequest) => any,
|
|
1583
|
+
): JQuery;
|
|
1486
1584
|
|
|
1487
1585
|
/**
|
|
1488
1586
|
* Encode a set of form elements as a string for submission.
|
|
@@ -1530,7 +1628,7 @@ interface JQuery {
|
|
|
1530
1628
|
* @param value A value to set for the attribute. If this is `null`, the attribute will be deleted.
|
|
1531
1629
|
* @see {@link https://api.jquery.com/attr/#attr-attributeName-value}
|
|
1532
1630
|
*/
|
|
1533
|
-
attr(attributeName: string, value: string|number|null): JQuery;
|
|
1631
|
+
attr(attributeName: string, value: string | number | null): JQuery;
|
|
1534
1632
|
/**
|
|
1535
1633
|
* Set one or more attributes for the set of matched elements.
|
|
1536
1634
|
*
|
|
@@ -1538,7 +1636,7 @@ interface JQuery {
|
|
|
1538
1636
|
* @param func A function returning the value to set. this is the current element. Receives the index position of the element in the set and the old attribute value as arguments.
|
|
1539
1637
|
* @see {@link https://api.jquery.com/attr/#attr-attributeName-function}
|
|
1540
1638
|
*/
|
|
1541
|
-
attr(attributeName: string, func: (index: number, attr: string) => string|number): JQuery;
|
|
1639
|
+
attr(attributeName: string, func: (index: number, attr: string) => string | number): JQuery;
|
|
1542
1640
|
/**
|
|
1543
1641
|
* Set one or more attributes for the set of matched elements.
|
|
1544
1642
|
*
|
|
@@ -1589,7 +1687,7 @@ interface JQuery {
|
|
|
1589
1687
|
* @param value A value to set for the property.
|
|
1590
1688
|
* @see {@link https://api.jquery.com/prop/#prop-propertyName-value}
|
|
1591
1689
|
*/
|
|
1592
|
-
prop(propertyName: string, value: string|number|boolean): JQuery;
|
|
1690
|
+
prop(propertyName: string, value: string | number | boolean): JQuery;
|
|
1593
1691
|
/**
|
|
1594
1692
|
* Set one or more properties for the set of matched elements.
|
|
1595
1693
|
*
|
|
@@ -1672,7 +1770,7 @@ interface JQuery {
|
|
|
1672
1770
|
* @param value A string of text, an array of strings or number corresponding to the value of each matched element to set as selected/checked.
|
|
1673
1771
|
* @see {@link https://api.jquery.com/val/#val-value}
|
|
1674
1772
|
*/
|
|
1675
|
-
val(value: string|string[]|number): JQuery;
|
|
1773
|
+
val(value: string | string[] | number): JQuery;
|
|
1676
1774
|
/**
|
|
1677
1775
|
* Set the value of each element in the set of matched elements.
|
|
1678
1776
|
*
|
|
@@ -1703,7 +1801,7 @@ interface JQuery {
|
|
|
1703
1801
|
* @param value A value to set for the property.
|
|
1704
1802
|
* @see {@link https://api.jquery.com/css/#css-propertyName-value}
|
|
1705
1803
|
*/
|
|
1706
|
-
css(propertyName: string, value: string|number): JQuery;
|
|
1804
|
+
css(propertyName: string, value: string | number): JQuery;
|
|
1707
1805
|
/**
|
|
1708
1806
|
* Set one or more CSS properties for the set of matched elements.
|
|
1709
1807
|
*
|
|
@@ -1711,7 +1809,7 @@ interface JQuery {
|
|
|
1711
1809
|
* @param value A function returning the value to set. this is the current element. Receives the index position of the element in the set and the old value as arguments.
|
|
1712
1810
|
* @see {@link https://api.jquery.com/css/#css-propertyName-function}
|
|
1713
1811
|
*/
|
|
1714
|
-
css(propertyName: string, value: (index: number, value: string) => string|number): JQuery;
|
|
1812
|
+
css(propertyName: string, value: (index: number, value: string) => string | number): JQuery;
|
|
1715
1813
|
/**
|
|
1716
1814
|
* Set one or more CSS properties for the set of matched elements.
|
|
1717
1815
|
*
|
|
@@ -1731,14 +1829,14 @@ interface JQuery {
|
|
|
1731
1829
|
* @param value An integer representing the number of pixels, or an integer with an optional unit of measure appended (as a string).
|
|
1732
1830
|
* @see {@link https://api.jquery.com/height/#height-value}
|
|
1733
1831
|
*/
|
|
1734
|
-
height(value: number|string): JQuery;
|
|
1832
|
+
height(value: number | string): JQuery;
|
|
1735
1833
|
/**
|
|
1736
1834
|
* Set the CSS height of every matched element.
|
|
1737
1835
|
*
|
|
1738
1836
|
* @param func A function returning the height to set. Receives the index position of the element in the set and the old height as arguments. Within the function, this refers to the current element in the set.
|
|
1739
1837
|
* @see {@link https://api.jquery.com/height/#height-function}
|
|
1740
1838
|
*/
|
|
1741
|
-
height(func: (index: number, height: number) => number|string): JQuery;
|
|
1839
|
+
height(func: (index: number, height: number) => number | string): JQuery;
|
|
1742
1840
|
|
|
1743
1841
|
/**
|
|
1744
1842
|
* Get the current computed height for the first element in the set of matched elements, including padding but not border.
|
|
@@ -1752,7 +1850,7 @@ interface JQuery {
|
|
|
1752
1850
|
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
|
|
1753
1851
|
* @see {@link https://api.jquery.com/innerHeight/#innerHeight-value}
|
|
1754
1852
|
*/
|
|
1755
|
-
innerHeight(value: number|string): JQuery;
|
|
1853
|
+
innerHeight(value: number | string): JQuery;
|
|
1756
1854
|
|
|
1757
1855
|
/**
|
|
1758
1856
|
* Get the current computed width for the first element in the set of matched elements, including padding but not border.
|
|
@@ -1766,7 +1864,7 @@ interface JQuery {
|
|
|
1766
1864
|
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
|
|
1767
1865
|
* @see {@link https://api.jquery.com/innerWidth/#innerWidth-value}
|
|
1768
1866
|
*/
|
|
1769
|
-
innerWidth(value: number|string): JQuery;
|
|
1867
|
+
innerWidth(value: number | string): JQuery;
|
|
1770
1868
|
|
|
1771
1869
|
/**
|
|
1772
1870
|
* Get the current coordinates of the first element in the set of matched elements, relative to the document.
|
|
@@ -1802,7 +1900,7 @@ interface JQuery {
|
|
|
1802
1900
|
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
|
|
1803
1901
|
* @see {@link https://api.jquery.com/outerHeight/#outerHeight-value}
|
|
1804
1902
|
*/
|
|
1805
|
-
outerHeight(value: number|string): JQuery;
|
|
1903
|
+
outerHeight(value: number | string): JQuery;
|
|
1806
1904
|
|
|
1807
1905
|
/**
|
|
1808
1906
|
* Get the current computed width for the first element in the set of matched elements, including padding and border.
|
|
@@ -1818,7 +1916,7 @@ interface JQuery {
|
|
|
1818
1916
|
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
|
|
1819
1917
|
* @see {@link https://api.jquery.com/outerWidth/#outerWidth-value}
|
|
1820
1918
|
*/
|
|
1821
|
-
outerWidth(value: number|string): JQuery;
|
|
1919
|
+
outerWidth(value: number | string): JQuery;
|
|
1822
1920
|
|
|
1823
1921
|
/**
|
|
1824
1922
|
* Get the current coordinates of the first element in the set of matched elements, relative to the offset parent.
|
|
@@ -1863,14 +1961,14 @@ interface JQuery {
|
|
|
1863
1961
|
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
|
|
1864
1962
|
* @see {@link https://api.jquery.com/width/#width-value}
|
|
1865
1963
|
*/
|
|
1866
|
-
width(value: number|string): JQuery;
|
|
1964
|
+
width(value: number | string): JQuery;
|
|
1867
1965
|
/**
|
|
1868
1966
|
* Set the CSS width of each element in the set of matched elements.
|
|
1869
1967
|
*
|
|
1870
1968
|
* @param func A function returning the width to set. Receives the index position of the element in the set and the old width as arguments. Within the function, this refers to the current element in the set.
|
|
1871
1969
|
* @see {@link https://api.jquery.com/width/#width-function}
|
|
1872
1970
|
*/
|
|
1873
|
-
width(func: (index: number, width: number) => number|string): JQuery;
|
|
1971
|
+
width(func: (index: number, width: number) => number | string): JQuery;
|
|
1874
1972
|
|
|
1875
1973
|
/**
|
|
1876
1974
|
* Remove from the queue all items that have not yet been run.
|
|
@@ -1901,7 +1999,7 @@ interface JQuery {
|
|
|
1901
1999
|
* @param obj An object of key-value pairs of data to update.
|
|
1902
2000
|
* @see {@link https://api.jquery.com/data/#data-obj}
|
|
1903
2001
|
*/
|
|
1904
|
-
data(obj: { [key: string]: any
|
|
2002
|
+
data(obj: { [key: string]: any }): JQuery;
|
|
1905
2003
|
/**
|
|
1906
2004
|
* Return the value at the named data store for the first element in the jQuery collection, as set by data(name, value) or by an HTML5 data-* attribute.
|
|
1907
2005
|
* @see {@link https://api.jquery.com/data/#data}
|
|
@@ -1953,7 +2051,7 @@ interface JQuery {
|
|
|
1953
2051
|
* @param complete A function to call once the animation is complete.
|
|
1954
2052
|
* @see {@link https://api.jquery.com/animate/#animate-properties-duration-easing-complete}
|
|
1955
2053
|
*/
|
|
1956
|
-
animate(properties: Object, duration?: string|number, complete?: Function): JQuery;
|
|
2054
|
+
animate(properties: Object, duration?: string | number, complete?: Function): JQuery;
|
|
1957
2055
|
/**
|
|
1958
2056
|
* Perform a custom animation of a set of CSS properties.
|
|
1959
2057
|
*
|
|
@@ -1963,7 +2061,7 @@ interface JQuery {
|
|
|
1963
2061
|
* @param complete A function to call once the animation is complete.
|
|
1964
2062
|
* @see {@link https://api.jquery.com/animate/#animate-properties-duration-easing-complete}
|
|
1965
2063
|
*/
|
|
1966
|
-
animate(properties: Object, duration?: string|number, easing?: string, complete?: Function): JQuery;
|
|
2064
|
+
animate(properties: Object, duration?: string | number, easing?: string, complete?: Function): JQuery;
|
|
1967
2065
|
/**
|
|
1968
2066
|
* Perform a custom animation of a set of CSS properties.
|
|
1969
2067
|
*
|
|
@@ -1989,7 +2087,7 @@ interface JQuery {
|
|
|
1989
2087
|
* @param complete A function to call once the animation is complete.
|
|
1990
2088
|
* @see {@link https://api.jquery.com/fadeIn/#fadeIn-duration-complete}
|
|
1991
2089
|
*/
|
|
1992
|
-
fadeIn(duration?: number|string, complete?: Function): JQuery;
|
|
2090
|
+
fadeIn(duration?: number | string, complete?: Function): JQuery;
|
|
1993
2091
|
/**
|
|
1994
2092
|
* Display the matched elements by fading them to opaque.
|
|
1995
2093
|
*
|
|
@@ -1998,7 +2096,7 @@ interface JQuery {
|
|
|
1998
2096
|
* @param complete A function to call once the animation is complete.
|
|
1999
2097
|
* @see {@link https://api.jquery.com/fadeIn/#fadeIn-duration-easing-complete}
|
|
2000
2098
|
*/
|
|
2001
|
-
fadeIn(duration?: number|string, easing?: string, complete?: Function): JQuery;
|
|
2099
|
+
fadeIn(duration?: number | string, easing?: string, complete?: Function): JQuery;
|
|
2002
2100
|
/**
|
|
2003
2101
|
* Display the matched elements by fading them to opaque.
|
|
2004
2102
|
*
|
|
@@ -2014,7 +2112,7 @@ interface JQuery {
|
|
|
2014
2112
|
* @param complete A function to call once the animation is complete.
|
|
2015
2113
|
* @see {@link https://api.jquery.com/fadeOut/#fadeOut-duration-complete}
|
|
2016
2114
|
*/
|
|
2017
|
-
fadeOut(duration?: number|string, complete?: Function): JQuery;
|
|
2115
|
+
fadeOut(duration?: number | string, complete?: Function): JQuery;
|
|
2018
2116
|
/**
|
|
2019
2117
|
* Hide the matched elements by fading them to transparent.
|
|
2020
2118
|
*
|
|
@@ -2023,7 +2121,7 @@ interface JQuery {
|
|
|
2023
2121
|
* @param complete A function to call once the animation is complete.
|
|
2024
2122
|
* @see {@link https://api.jquery.com/fadeOut/#fadeOut-duration-easing-complete}
|
|
2025
2123
|
*/
|
|
2026
|
-
fadeOut(duration?: number|string, easing?: string, complete?: Function): JQuery;
|
|
2124
|
+
fadeOut(duration?: number | string, easing?: string, complete?: Function): JQuery;
|
|
2027
2125
|
/**
|
|
2028
2126
|
* Hide the matched elements by fading them to transparent.
|
|
2029
2127
|
*
|
|
@@ -2040,7 +2138,7 @@ interface JQuery {
|
|
|
2040
2138
|
* @param complete A function to call once the animation is complete.
|
|
2041
2139
|
* @see {@link https://api.jquery.com/fadeTo/#fadeTo-duration-opacity-complete}
|
|
2042
2140
|
*/
|
|
2043
|
-
fadeTo(duration: string|number, opacity: number, complete?: Function): JQuery;
|
|
2141
|
+
fadeTo(duration: string | number, opacity: number, complete?: Function): JQuery;
|
|
2044
2142
|
/**
|
|
2045
2143
|
* Adjust the opacity of the matched elements.
|
|
2046
2144
|
*
|
|
@@ -2050,7 +2148,7 @@ interface JQuery {
|
|
|
2050
2148
|
* @param complete A function to call once the animation is complete.
|
|
2051
2149
|
* @see {@link https://api.jquery.com/fadeTo/#fadeTo-duration-opacity-easing-complete}
|
|
2052
2150
|
*/
|
|
2053
|
-
fadeTo(duration: string|number, opacity: number, easing?: string, complete?: Function): JQuery;
|
|
2151
|
+
fadeTo(duration: string | number, opacity: number, easing?: string, complete?: Function): JQuery;
|
|
2054
2152
|
|
|
2055
2153
|
/**
|
|
2056
2154
|
* Display or hide the matched elements by animating their opacity.
|
|
@@ -2059,7 +2157,7 @@ interface JQuery {
|
|
|
2059
2157
|
* @param complete A function to call once the animation is complete.
|
|
2060
2158
|
* @see {@link https://api.jquery.com/fadeToggle/#fadeToggle-duration-easing-complete}
|
|
2061
2159
|
*/
|
|
2062
|
-
fadeToggle(duration?: number|string, complete?: Function): JQuery;
|
|
2160
|
+
fadeToggle(duration?: number | string, complete?: Function): JQuery;
|
|
2063
2161
|
/**
|
|
2064
2162
|
* Display or hide the matched elements by animating their opacity.
|
|
2065
2163
|
*
|
|
@@ -2068,7 +2166,7 @@ interface JQuery {
|
|
|
2068
2166
|
* @param complete A function to call once the animation is complete.
|
|
2069
2167
|
* @see {@link https://api.jquery.com/fadeToggle/#fadeToggle-duration-easing-complete}
|
|
2070
2168
|
*/
|
|
2071
|
-
fadeToggle(duration?: number|string, easing?: string, complete?: Function): JQuery;
|
|
2169
|
+
fadeToggle(duration?: number | string, easing?: string, complete?: Function): JQuery;
|
|
2072
2170
|
/**
|
|
2073
2171
|
* Display or hide the matched elements by animating their opacity.
|
|
2074
2172
|
*
|
|
@@ -2092,7 +2190,7 @@ interface JQuery {
|
|
|
2092
2190
|
* @param complete A function to call once the animation is complete.
|
|
2093
2191
|
* @see {@link https://api.jquery.com/hide/#hide}
|
|
2094
2192
|
*/
|
|
2095
|
-
hide(duration?: number|string, complete?: Function): JQuery;
|
|
2193
|
+
hide(duration?: number | string, complete?: Function): JQuery;
|
|
2096
2194
|
/**
|
|
2097
2195
|
* Hide the matched elements.
|
|
2098
2196
|
*
|
|
@@ -2101,7 +2199,7 @@ interface JQuery {
|
|
|
2101
2199
|
* @param complete A function to call once the animation is complete.
|
|
2102
2200
|
* @see {@link https://api.jquery.com/hide/#hide-duration-easing-complete}
|
|
2103
2201
|
*/
|
|
2104
|
-
hide(duration?: number|string, easing?: string, complete?: Function): JQuery;
|
|
2202
|
+
hide(duration?: number | string, easing?: string, complete?: Function): JQuery;
|
|
2105
2203
|
/**
|
|
2106
2204
|
* Hide the matched elements.
|
|
2107
2205
|
*
|
|
@@ -2117,7 +2215,7 @@ interface JQuery {
|
|
|
2117
2215
|
* @param complete A function to call once the animation is complete.
|
|
2118
2216
|
* @see {@link https://api.jquery.com/show/#show}
|
|
2119
2217
|
*/
|
|
2120
|
-
show(duration?: number|string, complete?: Function): JQuery;
|
|
2218
|
+
show(duration?: number | string, complete?: Function): JQuery;
|
|
2121
2219
|
/**
|
|
2122
2220
|
* Display the matched elements.
|
|
2123
2221
|
*
|
|
@@ -2126,7 +2224,7 @@ interface JQuery {
|
|
|
2126
2224
|
* @param complete A function to call once the animation is complete.
|
|
2127
2225
|
* @see {@link https://api.jquery.com/show/#show-duration-easing-complete}
|
|
2128
2226
|
*/
|
|
2129
|
-
show(duration?: number|string, easing?: string, complete?: Function): JQuery;
|
|
2227
|
+
show(duration?: number | string, easing?: string, complete?: Function): JQuery;
|
|
2130
2228
|
/**
|
|
2131
2229
|
* Display the matched elements.
|
|
2132
2230
|
*
|
|
@@ -2142,7 +2240,7 @@ interface JQuery {
|
|
|
2142
2240
|
* @param complete A function to call once the animation is complete.
|
|
2143
2241
|
* @see {@link https://api.jquery.com/slideDown/#slideDown-duration-complete}
|
|
2144
2242
|
*/
|
|
2145
|
-
slideDown(duration?: number|string, complete?: Function): JQuery;
|
|
2243
|
+
slideDown(duration?: number | string, complete?: Function): JQuery;
|
|
2146
2244
|
/**
|
|
2147
2245
|
* Display the matched elements with a sliding motion.
|
|
2148
2246
|
*
|
|
@@ -2151,7 +2249,7 @@ interface JQuery {
|
|
|
2151
2249
|
* @param complete A function to call once the animation is complete.
|
|
2152
2250
|
* @see {@link https://api.jquery.com/slideDown/#slideDown-duration-easing-complete}
|
|
2153
2251
|
*/
|
|
2154
|
-
slideDown(duration?: number|string, easing?: string, complete?: Function): JQuery;
|
|
2252
|
+
slideDown(duration?: number | string, easing?: string, complete?: Function): JQuery;
|
|
2155
2253
|
/**
|
|
2156
2254
|
* Display the matched elements with a sliding motion.
|
|
2157
2255
|
*
|
|
@@ -2167,7 +2265,7 @@ interface JQuery {
|
|
|
2167
2265
|
* @param complete A function to call once the animation is complete.
|
|
2168
2266
|
* @see {@link https://api.jquery.com/slideToggle/#slideToggle-duration-complete}
|
|
2169
2267
|
*/
|
|
2170
|
-
slideToggle(duration?: number|string, complete?: Function): JQuery;
|
|
2268
|
+
slideToggle(duration?: number | string, complete?: Function): JQuery;
|
|
2171
2269
|
/**
|
|
2172
2270
|
* Display or hide the matched elements with a sliding motion.
|
|
2173
2271
|
*
|
|
@@ -2176,7 +2274,7 @@ interface JQuery {
|
|
|
2176
2274
|
* @param complete A function to call once the animation is complete.
|
|
2177
2275
|
* @see {@link https://api.jquery.com/slideToggle/#slideToggle-duration-easing-complete}
|
|
2178
2276
|
*/
|
|
2179
|
-
slideToggle(duration?: number|string, easing?: string, complete?: Function): JQuery;
|
|
2277
|
+
slideToggle(duration?: number | string, easing?: string, complete?: Function): JQuery;
|
|
2180
2278
|
/**
|
|
2181
2279
|
* Display or hide the matched elements with a sliding motion.
|
|
2182
2280
|
*
|
|
@@ -2192,7 +2290,7 @@ interface JQuery {
|
|
|
2192
2290
|
* @param complete A function to call once the animation is complete.
|
|
2193
2291
|
* @see {@link https://api.jquery.com/slideUp/#slideUp-duration-complete}
|
|
2194
2292
|
*/
|
|
2195
|
-
slideUp(duration?: number|string, complete?: Function): JQuery;
|
|
2293
|
+
slideUp(duration?: number | string, complete?: Function): JQuery;
|
|
2196
2294
|
/**
|
|
2197
2295
|
* Hide the matched elements with a sliding motion.
|
|
2198
2296
|
*
|
|
@@ -2201,7 +2299,7 @@ interface JQuery {
|
|
|
2201
2299
|
* @param complete A function to call once the animation is complete.
|
|
2202
2300
|
* @see {@link https://api.jquery.com/slideUp/#slideUp-duration-easing-complete}
|
|
2203
2301
|
*/
|
|
2204
|
-
slideUp(duration?: number|string, easing?: string, complete?: Function): JQuery;
|
|
2302
|
+
slideUp(duration?: number | string, easing?: string, complete?: Function): JQuery;
|
|
2205
2303
|
/**
|
|
2206
2304
|
* Hide the matched elements with a sliding motion.
|
|
2207
2305
|
*
|
|
@@ -2235,7 +2333,7 @@ interface JQuery {
|
|
|
2235
2333
|
* @param complete A function to call once the animation is complete.
|
|
2236
2334
|
* @see {@link https://api.jquery.com/toggle/#toggle-duration-complete}
|
|
2237
2335
|
*/
|
|
2238
|
-
toggle(duration?: number|string, complete?: Function): JQuery;
|
|
2336
|
+
toggle(duration?: number | string, complete?: Function): JQuery;
|
|
2239
2337
|
/**
|
|
2240
2338
|
* Display or hide the matched elements.
|
|
2241
2339
|
*
|
|
@@ -2244,7 +2342,7 @@ interface JQuery {
|
|
|
2244
2342
|
* @param complete A function to call once the animation is complete.
|
|
2245
2343
|
* @see {@link https://api.jquery.com/toggle/#toggle-duration-easing-complete}
|
|
2246
2344
|
*/
|
|
2247
|
-
toggle(duration?: number|string, easing?: string, complete?: Function): JQuery;
|
|
2345
|
+
toggle(duration?: number | string, easing?: string, complete?: Function): JQuery;
|
|
2248
2346
|
/**
|
|
2249
2347
|
* Display or hide the matched elements.
|
|
2250
2348
|
*
|
|
@@ -2416,7 +2514,12 @@ interface JQuery {
|
|
|
2416
2514
|
* Attach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements.
|
|
2417
2515
|
* @see {@link https://api.jquery.com/delegate/#delegate-selector-eventType-eventData-handler}
|
|
2418
2516
|
*/
|
|
2419
|
-
delegate(
|
|
2517
|
+
delegate(
|
|
2518
|
+
selector: any,
|
|
2519
|
+
eventType: string,
|
|
2520
|
+
eventData: any,
|
|
2521
|
+
handler: (eventObject: JQueryEventObject) => any,
|
|
2522
|
+
): JQuery;
|
|
2420
2523
|
|
|
2421
2524
|
/**
|
|
2422
2525
|
* Trigger the "focus" event on an element.
|
|
@@ -2488,7 +2591,10 @@ interface JQuery {
|
|
|
2488
2591
|
* @param handlerOut A function to execute when the mouse pointer leaves the element.
|
|
2489
2592
|
* @see {@link https://api.jquery.com/hover/#hover-handlerIn-handlerOut}
|
|
2490
2593
|
*/
|
|
2491
|
-
hover(
|
|
2594
|
+
hover(
|
|
2595
|
+
handlerIn: (eventObject: JQueryEventObject) => any,
|
|
2596
|
+
handlerOut: (eventObject: JQueryEventObject) => any,
|
|
2597
|
+
): JQuery;
|
|
2492
2598
|
/**
|
|
2493
2599
|
* Bind a single handler to the matched elements, to be executed when the mouse pointer enters or leaves the elements.
|
|
2494
2600
|
*
|
|
@@ -2760,7 +2866,7 @@ interface JQuery {
|
|
|
2760
2866
|
* @param selector A selector which should match the one originally passed to .on() when attaching event handlers.
|
|
2761
2867
|
* @see {@link https://api.jquery.com/off/#off-events-selector}
|
|
2762
2868
|
*/
|
|
2763
|
-
off(events: { [key: string]: any
|
|
2869
|
+
off(events: { [key: string]: any }, selector?: string): JQuery;
|
|
2764
2870
|
|
|
2765
2871
|
/**
|
|
2766
2872
|
* Attach an event handler function for one or more events to the selected elements.
|
|
@@ -2786,8 +2892,8 @@ interface JQuery {
|
|
|
2786
2892
|
* @param data Data to be passed to the handler in event.data when an event is triggered.
|
|
2787
2893
|
* @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.
|
|
2788
2894
|
* @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
|
|
2789
|
-
|
|
2790
|
-
on(events: string, data
|
|
2895
|
+
*/
|
|
2896
|
+
on(events: string, data: any, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery;
|
|
2791
2897
|
/**
|
|
2792
2898
|
* Attach an event handler function for one or more events to the selected elements.
|
|
2793
2899
|
*
|
|
@@ -2797,7 +2903,12 @@ interface JQuery {
|
|
|
2797
2903
|
* @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.
|
|
2798
2904
|
* @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
|
|
2799
2905
|
*/
|
|
2800
|
-
on(
|
|
2906
|
+
on(
|
|
2907
|
+
events: string,
|
|
2908
|
+
selector: string,
|
|
2909
|
+
data: any,
|
|
2910
|
+
handler: (eventObject: JQueryEventObject, ...eventData: any[]) => any,
|
|
2911
|
+
): JQuery;
|
|
2801
2912
|
/**
|
|
2802
2913
|
* Attach an event handler function for one or more events to the selected elements.
|
|
2803
2914
|
*
|
|
@@ -2806,7 +2917,11 @@ interface JQuery {
|
|
|
2806
2917
|
* @param data Data to be passed to the handler in event.data when an event occurs.
|
|
2807
2918
|
* @see {@link https://api.jquery.com/on/#on-events-selector-data}
|
|
2808
2919
|
*/
|
|
2809
|
-
on(
|
|
2920
|
+
on(
|
|
2921
|
+
events: { [key: string]: (eventObject: JQueryEventObject, ...args: any[]) => any },
|
|
2922
|
+
selector?: string,
|
|
2923
|
+
data?: any,
|
|
2924
|
+
): JQuery;
|
|
2810
2925
|
/**
|
|
2811
2926
|
* Attach an event handler function for one or more events to the selected elements.
|
|
2812
2927
|
*
|
|
@@ -2814,7 +2929,7 @@ interface JQuery {
|
|
|
2814
2929
|
* @param data Data to be passed to the handler in event.data when an event occurs.
|
|
2815
2930
|
* @see {@link https://api.jquery.com/on/#on-events-selector-data}
|
|
2816
2931
|
*/
|
|
2817
|
-
on(events: { [key: string]: (eventObject: JQueryEventObject, ...args: any[]) => any
|
|
2932
|
+
on(events: { [key: string]: (eventObject: JQueryEventObject, ...args: any[]) => any }, data?: any): JQuery;
|
|
2818
2933
|
|
|
2819
2934
|
/**
|
|
2820
2935
|
* Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
|
|
@@ -2862,7 +2977,7 @@ interface JQuery {
|
|
|
2862
2977
|
* @param data Data to be passed to the handler in event.data when an event occurs.
|
|
2863
2978
|
* @see {@link https://api.jquery.com/one/#one-events-selector-data}
|
|
2864
2979
|
*/
|
|
2865
|
-
one(events: { [key: string]: any
|
|
2980
|
+
one(events: { [key: string]: any }, selector?: string, data?: any): JQuery;
|
|
2866
2981
|
|
|
2867
2982
|
/**
|
|
2868
2983
|
* Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
|
|
@@ -2871,8 +2986,7 @@ interface JQuery {
|
|
|
2871
2986
|
* @param data Data to be passed to the handler in event.data when an event occurs.
|
|
2872
2987
|
* @see {@link https://api.jquery.com/one/#one-events-selector-data}
|
|
2873
2988
|
*/
|
|
2874
|
-
one(events: { [key: string]: any
|
|
2875
|
-
|
|
2989
|
+
one(events: { [key: string]: any }, data?: any): JQuery;
|
|
2876
2990
|
|
|
2877
2991
|
/**
|
|
2878
2992
|
* Specify a function to execute when the DOM is fully loaded.
|
|
@@ -2973,7 +3087,7 @@ interface JQuery {
|
|
|
2973
3087
|
* @param extraParameters Additional parameters to pass along to the event handler.
|
|
2974
3088
|
* @see {@link https://api.jquery.com/trigger/#trigger-eventType-extraParameters}
|
|
2975
3089
|
*/
|
|
2976
|
-
trigger(eventType: string, extraParameters?: any[]|Object): JQuery;
|
|
3090
|
+
trigger(eventType: string, extraParameters?: any[] | Object): JQuery;
|
|
2977
3091
|
/**
|
|
2978
3092
|
* Execute all handlers and behaviors attached to the matched elements for the given event type.
|
|
2979
3093
|
*
|
|
@@ -2981,7 +3095,7 @@ interface JQuery {
|
|
|
2981
3095
|
* @param extraParameters Additional parameters to pass along to the event handler.
|
|
2982
3096
|
* @see {@link https://api.jquery.com/trigger/#trigger-event-extraParameters}
|
|
2983
3097
|
*/
|
|
2984
|
-
trigger(event: JQueryEventObject, extraParameters?: any[]|Object): JQuery;
|
|
3098
|
+
trigger(event: JQueryEventObject, extraParameters?: any[] | Object): JQuery;
|
|
2985
3099
|
|
|
2986
3100
|
/**
|
|
2987
3101
|
* Execute all handlers attached to an element for an event.
|
|
@@ -3119,14 +3233,14 @@ interface JQuery {
|
|
|
3119
3233
|
* @param content2 One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert after each element in the set of matched elements.
|
|
3120
3234
|
* @see {@link https://api.jquery.com/after/#after-content-content}
|
|
3121
3235
|
*/
|
|
3122
|
-
after(content1: JQuery|any[]|Element|DocumentFragment|Text|string, ...content2: any[]): JQuery;
|
|
3236
|
+
after(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): JQuery;
|
|
3123
3237
|
/**
|
|
3124
3238
|
* Insert content, specified by the parameter, after each element in the set of matched elements.
|
|
3125
3239
|
*
|
|
3126
3240
|
* @param func A function that returns an HTML string, DOM element(s), or jQuery object to insert after each element in the set of matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set.
|
|
3127
3241
|
* @see {@link https://api.jquery.com/after/#after-function}
|
|
3128
3242
|
*/
|
|
3129
|
-
after(func: (index: number, html: string) => string|Element|JQuery): JQuery;
|
|
3243
|
+
after(func: (index: number, html: string) => string | Element | JQuery): JQuery;
|
|
3130
3244
|
|
|
3131
3245
|
/**
|
|
3132
3246
|
* Insert content, specified by the parameter, to the end of each element in the set of matched elements.
|
|
@@ -3135,14 +3249,14 @@ interface JQuery {
|
|
|
3135
3249
|
* @param content2 One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the end of each element in the set of matched elements.
|
|
3136
3250
|
* @see {@link https://api.jquery.com/append/#append-content-content}
|
|
3137
3251
|
*/
|
|
3138
|
-
append(content1: JQuery|any[]|Element|DocumentFragment|Text|string, ...content2: any[]): JQuery;
|
|
3252
|
+
append(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): JQuery;
|
|
3139
3253
|
/**
|
|
3140
3254
|
* Insert content, specified by the parameter, to the end of each element in the set of matched elements.
|
|
3141
3255
|
*
|
|
3142
3256
|
* @param func A function that returns an HTML string, DOM element(s), or jQuery object to insert at the end of each element in the set of matched elements. Receives the index position of the element in the set and the old HTML value of the element as arguments. Within the function, this refers to the current element in the set.
|
|
3143
3257
|
* @see {@link https://api.jquery.com/append/#append-function}
|
|
3144
3258
|
*/
|
|
3145
|
-
append(func: (index: number, html: string) => string|Element|JQuery): JQuery;
|
|
3259
|
+
append(func: (index: number, html: string) => string | Element | JQuery): JQuery;
|
|
3146
3260
|
|
|
3147
3261
|
/**
|
|
3148
3262
|
* Insert every element in the set of matched elements to the end of the target.
|
|
@@ -3150,7 +3264,7 @@ interface JQuery {
|
|
|
3150
3264
|
* @param target A selector, element, HTML string, array of elements, or jQuery object; the matched set of elements will be inserted at the end of the element(s) specified by this parameter.
|
|
3151
3265
|
* @see {@link https://api.jquery.com/appendTo/}
|
|
3152
3266
|
*/
|
|
3153
|
-
appendTo(target: JQuery|any[]|Element|string): JQuery;
|
|
3267
|
+
appendTo(target: JQuery | any[] | Element | string): JQuery;
|
|
3154
3268
|
|
|
3155
3269
|
/**
|
|
3156
3270
|
* Insert content, specified by the parameter, before each element in the set of matched elements.
|
|
@@ -3159,14 +3273,14 @@ interface JQuery {
|
|
|
3159
3273
|
* @param content2 One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert before each element in the set of matched elements.
|
|
3160
3274
|
* @see {@link https://api.jquery.com/before/#before-content-content}
|
|
3161
3275
|
*/
|
|
3162
|
-
before(content1: JQuery|any[]|Element|DocumentFragment|Text|string, ...content2: any[]): JQuery;
|
|
3276
|
+
before(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): JQuery;
|
|
3163
3277
|
/**
|
|
3164
3278
|
* Insert content, specified by the parameter, before each element in the set of matched elements.
|
|
3165
3279
|
*
|
|
3166
3280
|
* @param func A function that returns an HTML string, DOM element(s), or jQuery object to insert before each element in the set of matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set.
|
|
3167
3281
|
* @see {@link https://api.jquery.com/before/#before-function}
|
|
3168
3282
|
*/
|
|
3169
|
-
before(func: (index: number, html: string) => string|Element|JQuery): JQuery;
|
|
3283
|
+
before(func: (index: number, html: string) => string | Element | JQuery): JQuery;
|
|
3170
3284
|
|
|
3171
3285
|
/**
|
|
3172
3286
|
* Create a deep copy of the set of matched elements.
|
|
@@ -3197,7 +3311,7 @@ interface JQuery {
|
|
|
3197
3311
|
* @param target A selector, element, array of elements, HTML string, or jQuery object; the matched set of elements will be inserted after the element(s) specified by this parameter.
|
|
3198
3312
|
* @see {@link https://api.jquery.com/insertAfter/}
|
|
3199
3313
|
*/
|
|
3200
|
-
insertAfter(target: JQuery|any[]|Element|Text|string): JQuery;
|
|
3314
|
+
insertAfter(target: JQuery | any[] | Element | Text | string): JQuery;
|
|
3201
3315
|
|
|
3202
3316
|
/**
|
|
3203
3317
|
* Insert every element in the set of matched elements before the target.
|
|
@@ -3205,7 +3319,7 @@ interface JQuery {
|
|
|
3205
3319
|
* @param target A selector, element, array of elements, HTML string, or jQuery object; the matched set of elements will be inserted before the element(s) specified by this parameter.
|
|
3206
3320
|
* @see {@link https://api.jquery.com/insertBefore/}
|
|
3207
3321
|
*/
|
|
3208
|
-
insertBefore(target: JQuery|any[]|Element|Text|string): JQuery;
|
|
3322
|
+
insertBefore(target: JQuery | any[] | Element | Text | string): JQuery;
|
|
3209
3323
|
|
|
3210
3324
|
/**
|
|
3211
3325
|
* Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
|
|
@@ -3214,14 +3328,14 @@ interface JQuery {
|
|
|
3214
3328
|
* @param content2 One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the beginning of each element in the set of matched elements.
|
|
3215
3329
|
* @see {@link https://api.jquery.com/prepend/#prepend-content-content}
|
|
3216
3330
|
*/
|
|
3217
|
-
prepend(content1: JQuery|any[]|Element|DocumentFragment|Text|string, ...content2: any[]): JQuery;
|
|
3331
|
+
prepend(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): JQuery;
|
|
3218
3332
|
/**
|
|
3219
3333
|
* Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
|
|
3220
3334
|
*
|
|
3221
3335
|
* @param func A function that returns an HTML string, DOM element(s), or jQuery object to insert at the beginning of each element in the set of matched elements. Receives the index position of the element in the set and the old HTML value of the element as arguments. Within the function, this refers to the current element in the set.
|
|
3222
3336
|
* @see {@link https://api.jquery.com/prepend/#prepend-function}
|
|
3223
3337
|
*/
|
|
3224
|
-
prepend(func: (index: number, html: string) => string|Element|JQuery): JQuery;
|
|
3338
|
+
prepend(func: (index: number, html: string) => string | Element | JQuery): JQuery;
|
|
3225
3339
|
|
|
3226
3340
|
/**
|
|
3227
3341
|
* Insert every element in the set of matched elements to the beginning of the target.
|
|
@@ -3229,7 +3343,7 @@ interface JQuery {
|
|
|
3229
3343
|
* @param target A selector, element, HTML string, array of elements, or jQuery object; the matched set of elements will be inserted at the beginning of the element(s) specified by this parameter.
|
|
3230
3344
|
* @see {@link https://api.jquery.com/prependTo/}
|
|
3231
3345
|
*/
|
|
3232
|
-
prependTo(target: JQuery|any[]|Element|string): JQuery;
|
|
3346
|
+
prependTo(target: JQuery | any[] | Element | string): JQuery;
|
|
3233
3347
|
|
|
3234
3348
|
/**
|
|
3235
3349
|
* Remove the set of matched elements from the DOM.
|
|
@@ -3245,7 +3359,7 @@ interface JQuery {
|
|
|
3245
3359
|
* @param target A selector string, jQuery object, DOM element, or array of elements indicating which element(s) to replace.
|
|
3246
3360
|
* @see {@link https://api.jquery.com/replaceAll/}
|
|
3247
3361
|
*/
|
|
3248
|
-
replaceAll(target: JQuery|any[]|Element|string): JQuery;
|
|
3362
|
+
replaceAll(target: JQuery | any[] | Element | string): JQuery;
|
|
3249
3363
|
|
|
3250
3364
|
/**
|
|
3251
3365
|
* Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.
|
|
@@ -3253,14 +3367,14 @@ interface JQuery {
|
|
|
3253
3367
|
* @param newContent The content to insert. May be an HTML string, DOM element, array of DOM elements, or jQuery object.
|
|
3254
3368
|
* @see {@link https://api.jquery.com/replaceWith/#replaceWith-newContent}
|
|
3255
3369
|
*/
|
|
3256
|
-
replaceWith(newContent: JQuery|any[]|Element|Text|string): JQuery;
|
|
3370
|
+
replaceWith(newContent: JQuery | any[] | Element | Text | string): JQuery;
|
|
3257
3371
|
/**
|
|
3258
3372
|
* Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.
|
|
3259
3373
|
*
|
|
3260
3374
|
* @param func A function that returns content with which to replace the set of matched elements.
|
|
3261
3375
|
* @see {@link https://api.jquery.com/replaceWith/#replaceWith-function}
|
|
3262
3376
|
*/
|
|
3263
|
-
replaceWith(func: () => Element|JQuery): JQuery;
|
|
3377
|
+
replaceWith(func: () => Element | JQuery): JQuery;
|
|
3264
3378
|
|
|
3265
3379
|
/**
|
|
3266
3380
|
* Get the combined text contents of each element in the set of matched elements, including their descendants.
|
|
@@ -3273,7 +3387,7 @@ interface JQuery {
|
|
|
3273
3387
|
* @param text The text to set as the content of each matched element. When Number or Boolean is supplied, it will be converted to a String representation.
|
|
3274
3388
|
* @see {@link https://api.jquery.com/text/#text-text}
|
|
3275
3389
|
*/
|
|
3276
|
-
text(text: string|number|boolean): JQuery;
|
|
3390
|
+
text(text: string | number | boolean): JQuery;
|
|
3277
3391
|
/**
|
|
3278
3392
|
* Set the content of each element in the set of matched elements to the specified text.
|
|
3279
3393
|
*
|
|
@@ -3301,14 +3415,14 @@ interface JQuery {
|
|
|
3301
3415
|
* @param wrappingElement A selector, element, HTML string, or jQuery object specifying the structure to wrap around the matched elements.
|
|
3302
3416
|
* @see {@link https://api.jquery.com/wrap/#wrap-wrappingElement}
|
|
3303
3417
|
*/
|
|
3304
|
-
wrap(wrappingElement: JQuery|Element|string): JQuery;
|
|
3418
|
+
wrap(wrappingElement: JQuery | Element | string): JQuery;
|
|
3305
3419
|
/**
|
|
3306
3420
|
* Wrap an HTML structure around each element in the set of matched elements.
|
|
3307
3421
|
*
|
|
3308
3422
|
* @param func A callback function returning the HTML content or jQuery object to wrap around the matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set.
|
|
3309
3423
|
* @see {@link https://api.jquery.com/wrap/#wrap-function}
|
|
3310
3424
|
*/
|
|
3311
|
-
wrap(func: (index: number) => string|JQuery): JQuery;
|
|
3425
|
+
wrap(func: (index: number) => string | JQuery): JQuery;
|
|
3312
3426
|
|
|
3313
3427
|
/**
|
|
3314
3428
|
* Wrap an HTML structure around all elements in the set of matched elements.
|
|
@@ -3316,7 +3430,7 @@ interface JQuery {
|
|
|
3316
3430
|
* @param wrappingElement A selector, element, HTML string, or jQuery object specifying the structure to wrap around the matched elements.
|
|
3317
3431
|
* @see {@link https://api.jquery.com/wrapAll/#wrapAll-wrappingElement}
|
|
3318
3432
|
*/
|
|
3319
|
-
wrapAll(wrappingElement: JQuery|Element|string): JQuery;
|
|
3433
|
+
wrapAll(wrappingElement: JQuery | Element | string): JQuery;
|
|
3320
3434
|
/**
|
|
3321
3435
|
* Wrap an HTML structure around all elements in the set of matched elements.
|
|
3322
3436
|
*
|
|
@@ -3331,7 +3445,7 @@ interface JQuery {
|
|
|
3331
3445
|
* @param wrappingElement An HTML snippet, selector expression, jQuery object, or DOM element specifying the structure to wrap around the content of the matched elements.
|
|
3332
3446
|
* @see {@link https://api.jquery.com/wrapInner/#wrapInner-wrappingElement}
|
|
3333
3447
|
*/
|
|
3334
|
-
wrapInner(wrappingElement: JQuery|Element|string): JQuery;
|
|
3448
|
+
wrapInner(wrappingElement: JQuery | Element | string): JQuery;
|
|
3335
3449
|
/**
|
|
3336
3450
|
* Wrap an HTML structure around the content of each element in the set of matched elements.
|
|
3337
3451
|
*
|
|
@@ -3373,7 +3487,7 @@ interface JQuery {
|
|
|
3373
3487
|
* @param selector A selector representing a jQuery collection in which to look for an element.
|
|
3374
3488
|
* @see {@link https://api.jquery.com/index/#index-selector}
|
|
3375
3489
|
*/
|
|
3376
|
-
index(selector: string|JQuery|Element): number;
|
|
3490
|
+
index(selector: string | JQuery | Element): number;
|
|
3377
3491
|
|
|
3378
3492
|
/**
|
|
3379
3493
|
* The number of elements in the jQuery object.
|
|
@@ -3634,7 +3748,7 @@ interface JQuery {
|
|
|
3634
3748
|
* @param selector A string containing a selector expression, or an array of elements to match against the set.
|
|
3635
3749
|
* @see {@link https://api.jquery.com/not/#not-selector}
|
|
3636
3750
|
*/
|
|
3637
|
-
not(selector: string|any[]): JQuery;
|
|
3751
|
+
not(selector: string | any[]): JQuery;
|
|
3638
3752
|
/**
|
|
3639
3753
|
* Remove elements from the set of matched elements.
|
|
3640
3754
|
*
|
|
@@ -3648,7 +3762,7 @@ interface JQuery {
|
|
|
3648
3762
|
* @param elements One or more DOM elements to remove from the matched set.
|
|
3649
3763
|
* @see {@link https://api.jquery.com/not/#not-selection}
|
|
3650
3764
|
*/
|
|
3651
|
-
not(elements: Element|Element[]): JQuery;
|
|
3765
|
+
not(elements: Element | Element[]): JQuery;
|
|
3652
3766
|
/**
|
|
3653
3767
|
* Remove elements from the set of matched elements.
|
|
3654
3768
|
*
|
|
@@ -3806,7 +3920,7 @@ interface JQuery {
|
|
|
3806
3920
|
* @param object An object to merge onto the jQuery prototype.
|
|
3807
3921
|
* @see {@link https://api.jquery.com/jQuery.fn.extend/#jQuery-fn-extend-object}
|
|
3808
3922
|
*/
|
|
3809
|
-
extend(object: { [method: string]: (...args: any[]) => any
|
|
3923
|
+
extend(object: { [method: string]: (...args: any[]) => any }): JQuery;
|
|
3810
3924
|
}
|
|
3811
3925
|
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
3812
3926
|
declare module "jquery" {
|
jquery v2.0/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/jquery",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.62",
|
|
4
4
|
"description": "TypeScript definitions for jQuery",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery",
|
|
6
6
|
"license": "MIT",
|
|
@@ -110,6 +110,6 @@
|
|
|
110
110
|
},
|
|
111
111
|
"scripts": {},
|
|
112
112
|
"dependencies": {},
|
|
113
|
-
"typesPublisherContentHash": "
|
|
114
|
-
"typeScriptVersion": "4.
|
|
113
|
+
"typesPublisherContentHash": "d8a26e39bb075239deab04cfeaad04396b82e9af4d5e001053a68a97e93584e2",
|
|
114
|
+
"typeScriptVersion": "4.5"
|
|
115
115
|
}
|