@types/jquery 2.0.61 → 2.0.63

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/index.d.ts CHANGED
@@ -1,26 +1,3 @@
1
- // Type definitions for jQuery 2.0
2
- // Project: http://jquery.com/
3
- // Definitions by: Boris Yankov <https://github.com/borisyankov>
4
- // Christian Hoffmeister <https://github.com/choffmeister>
5
- // Steve Fenton <https://github.com/Steve-Fenton>
6
- // Diullei Gomes <https://github.com/Diullei>
7
- // Tass Iliopoulos <https://github.com/tasoili>
8
- // Sean Hill <https://github.com/seanski>
9
- // Guus Goossens <https://github.com/Guuz>
10
- // Kelly Summerlin <https://github.com/ksummerlin>
11
- // Basarat Ali Syed <https://github.com/basarat>
12
- // Nicholas Wolverson <https://github.com/nwolverson>
13
- // Derek Cicerone <https://github.com/derekcicerone>
14
- // Andrew Gaspar <https://github.com/AndrewGaspar>
15
- // Seikichi Kondo <https://github.com/seikichi>
16
- // Benjamin Jackman <https://github.com/benjaminjackman>
17
- // Josh Strobl <https://github.com/JoshStrobl>
18
- // John Reilly <https://github.com/johnnyreilly>
19
- // Dick van den Brink <https://github.com/DickvdBrink>
20
- // Thomas Schulz <https://github.com/King2500>
21
- // Leonard Thieu <https://github.com/leonard-thieu>
22
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
23
-
24
1
  /* *****************************************************************************
25
2
  Copyright (c) Microsoft Corporation. All rights reserved.
26
3
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
@@ -36,7 +13,6 @@ See the Apache Version 2.0 License for specific language governing permissions
36
13
  and limitations under the License.
37
14
  ***************************************************************************** */
38
15
 
39
-
40
16
  /**
41
17
  * Interface for the AJAX setting that will configure the AJAX request
42
18
  * @see {@link https://api.jquery.com/jQuery.ajax/#jQuery-ajax-settings}
@@ -53,7 +29,7 @@ interface JQueryAjaxSettings {
53
29
  /**
54
30
  * 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
31
  */
56
- beforeSend? (jqXHR: JQueryXHR, settings: JQueryAjaxSettings): any;
32
+ beforeSend?(jqXHR: JQueryXHR, settings: JQueryAjaxSettings): any;
57
33
  /**
58
34
  * 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
35
  */
@@ -61,12 +37,12 @@ interface JQueryAjaxSettings {
61
37
  /**
62
38
  * 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
39
  */
64
- complete? (jqXHR: JQueryXHR, textStatus: string): any;
40
+ complete?(jqXHR: JQueryXHR, textStatus: string): any;
65
41
  /**
66
42
  * An object of string/regular-expression pairs that determine how jQuery will parse the response, given its content type. (version added: 1.5)
67
43
  */
68
- contents?: { [key: string]: any; } | undefined;
69
- //According to jQuery.ajax source code, ajax's option actually allows contentType to set to "false"
44
+ contents?: { [key: string]: any } | undefined;
45
+ // According to jQuery.ajax source code, ajax's option actually allows contentType to set to "false"
70
46
  // https://github.com/DefinitelyTyped/DefinitelyTyped/issues/742
71
47
  /**
72
48
  * 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 +55,7 @@ interface JQueryAjaxSettings {
79
55
  /**
80
56
  * 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
57
  */
82
- converters?: { [key: string]: any; } | undefined;
58
+ converters?: { [key: string]: any } | undefined;
83
59
  /**
84
60
  * 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
61
  */
@@ -91,7 +67,7 @@ interface JQueryAjaxSettings {
91
67
  /**
92
68
  * 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
69
  */
94
- dataFilter? (data: any, ty: any): any;
70
+ dataFilter?(data: any, ty: any): any;
95
71
  /**
96
72
  * 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
73
  */
@@ -99,7 +75,7 @@ interface JQueryAjaxSettings {
99
75
  /**
100
76
  * 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
77
  */
102
- error? (jqXHR: JQueryXHR, textStatus: string, errorThrown: string): any;
78
+ error?(jqXHR: JQueryXHR, textStatus: string, errorThrown: string): any;
103
79
  /**
104
80
  * 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
81
  */
@@ -107,7 +83,7 @@ interface JQueryAjaxSettings {
107
83
  /**
108
84
  * 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
85
  */
110
- headers?: { [key: string]: any; } | undefined;
86
+ headers?: { [key: string]: any } | undefined;
111
87
  /**
112
88
  * 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
89
  */
@@ -147,11 +123,11 @@ interface JQueryAjaxSettings {
147
123
  /**
148
124
  * 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
125
  */
150
- statusCode?: { [key: string]: any; } | undefined;
126
+ statusCode?: { [key: string]: any } | undefined;
151
127
  /**
152
128
  * 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
129
  */
154
- success? (data: any, textStatus: string, jqXHR: JQueryXHR): any;
130
+ success?(data: any, textStatus: string, jqXHR: JQueryXHR): any;
155
131
  /**
156
132
  * 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
133
  */
@@ -179,7 +155,7 @@ interface JQueryAjaxSettings {
179
155
  /**
180
156
  * 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
157
  */
182
- xhrFields?: { [key: string]: any; } | undefined;
158
+ xhrFields?: { [key: string]: any } | undefined;
183
159
  }
184
160
 
185
161
  /**
@@ -200,7 +176,10 @@ interface JQueryXHR extends XMLHttpRequest, JQueryPromise<any> {
200
176
  /**
201
177
  * 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
178
  */
203
- then<R>(doneCallback: (data: any, textStatus: string, jqXHR: JQueryXHR) => R|JQueryPromise<R>, failCallback?: (jqXHR: JQueryXHR, textStatus: string, errorThrown: any) => void): JQueryPromise<R>;
179
+ then<R>(
180
+ doneCallback: (data: any, textStatus: string, jqXHR: JQueryXHR) => R | JQueryPromise<R>,
181
+ failCallback?: (jqXHR: JQueryXHR, textStatus: string, errorThrown: any) => void,
182
+ ): JQueryPromise<R>;
204
183
  /**
205
184
  * Property containing the parsed response if the response content type is json
206
185
  */
@@ -319,7 +298,11 @@ interface JQueryGenericPromise<T> {
319
298
  * @param failFilter An optional function that is called when the Deferred is rejected.
320
299
  * @see {@link https://api.jquery.com/deferred.then/#deferred-then-doneFilter-failFilter-progressFilter}
321
300
  */
322
- then<U>(doneFilter: (value?: T, ...values: any[]) => U|JQueryPromise<U>, failFilter?: (...reasons: any[]) => any, progressFilter?: (...progression: any[]) => any): JQueryPromise<U>;
301
+ then<U>(
302
+ doneFilter: (value?: T, ...values: any[]) => U | JQueryPromise<U>,
303
+ failFilter?: (...reasons: any[]) => any,
304
+ progressFilter?: (...progression: any[]) => any,
305
+ ): JQueryPromise<U>;
323
306
 
324
307
  /**
325
308
  * Add handlers to be called when the Deferred object is resolved, rejected, or still in progress.
@@ -328,7 +311,11 @@ interface JQueryGenericPromise<T> {
328
311
  * @param failFilter An optional function that is called when the Deferred is rejected.
329
312
  * @see {@link https://api.jquery.com/deferred.then/#deferred-then-doneFilter-failFilter-progressFilter}
330
313
  */
331
- then(doneFilter: (value?: T, ...values: any[]) => void, failFilter?: (...reasons: any[]) => any, progressFilter?: (...progression: any[]) => any): JQueryPromise<void>;
314
+ then(
315
+ doneFilter: (value?: T, ...values: any[]) => void,
316
+ failFilter?: (...reasons: any[]) => any,
317
+ progressFilter?: (...progression: any[]) => any,
318
+ ): JQueryPromise<void>;
332
319
  }
333
320
 
334
321
  /**
@@ -339,7 +326,10 @@ interface JQueryPromiseCallback<T> {
339
326
  }
340
327
 
341
328
  interface JQueryPromiseOperator<T, U> {
342
- (callback1: JQueryPromiseCallback<T>|JQueryPromiseCallback<T>[], ...callbacksN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryPromise<U>;
329
+ (
330
+ callback1: JQueryPromiseCallback<T> | JQueryPromiseCallback<T>[],
331
+ ...callbacksN: Array<JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[]>
332
+ ): JQueryPromise<U>;
343
333
  }
344
334
 
345
335
  /**
@@ -359,7 +349,10 @@ interface JQueryPromise<T> extends JQueryGenericPromise<T> {
359
349
  * @param alwaysCallbackN Optional additional functions, or arrays of functions, that are called when the Deferred is resolved or rejected.
360
350
  * @see {@link https://api.jquery.com/deferred.always/}
361
351
  */
362
- always(alwaysCallback1?: JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[], ...alwaysCallbackN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryPromise<T>;
352
+ always(
353
+ alwaysCallback1?: JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[],
354
+ ...alwaysCallbackN: Array<JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[]>
355
+ ): JQueryPromise<T>;
363
356
  /**
364
357
  * Add handlers to be called when the Deferred object is resolved.
365
358
  *
@@ -367,7 +360,10 @@ interface JQueryPromise<T> extends JQueryGenericPromise<T> {
367
360
  * @param doneCallbackN Optional additional functions, or arrays of functions, that are called when the Deferred is resolved.
368
361
  * @see {@link https://api.jquery.com/deferred.done/}
369
362
  */
370
- done(doneCallback1?: JQueryPromiseCallback<T>|JQueryPromiseCallback<T>[], ...doneCallbackN: Array<JQueryPromiseCallback<T>|JQueryPromiseCallback<T>[]>): JQueryPromise<T>;
363
+ done(
364
+ doneCallback1?: JQueryPromiseCallback<T> | JQueryPromiseCallback<T>[],
365
+ ...doneCallbackN: Array<JQueryPromiseCallback<T> | JQueryPromiseCallback<T>[]>
366
+ ): JQueryPromise<T>;
371
367
  /**
372
368
  * Add handlers to be called when the Deferred object is rejected.
373
369
  *
@@ -375,7 +371,10 @@ interface JQueryPromise<T> extends JQueryGenericPromise<T> {
375
371
  * @param failCallbackN Optional additional functions, or arrays of functions, that are called when the Deferred is rejected.
376
372
  * @see {@link https://api.jquery.com/deferred.fail/}
377
373
  */
378
- fail(failCallback1?: JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[], ...failCallbackN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryPromise<T>;
374
+ fail(
375
+ failCallback1?: JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[],
376
+ ...failCallbackN: Array<JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[]>
377
+ ): JQueryPromise<T>;
379
378
  /**
380
379
  * Add handlers to be called when the Deferred object generates progress notifications.
381
380
  *
@@ -383,10 +382,17 @@ interface JQueryPromise<T> extends JQueryGenericPromise<T> {
383
382
  * @param progressCallbackN Optional additional functions, or arrays of functions, to be called when the Deferred generates progress notifications.
384
383
  * @see {@link https://api.jquery.com/deferred.progress/}
385
384
  */
386
- progress(progressCallback1?: JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[], ...progressCallbackN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryPromise<T>;
385
+ progress(
386
+ progressCallback1?: JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[],
387
+ ...progressCallbackN: Array<JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[]>
388
+ ): JQueryPromise<T>;
387
389
 
388
390
  // Deprecated - given no typings
389
- pipe(doneFilter?: (x: any) => any, failFilter?: (x: any) => any, progressFilter?: (x: any) => any): JQueryPromise<any>;
391
+ pipe(
392
+ doneFilter?: (x: any) => any,
393
+ failFilter?: (x: any) => any,
394
+ progressFilter?: (x: any) => any,
395
+ ): JQueryPromise<any>;
390
396
 
391
397
  /**
392
398
  * Return a Deferred's Promise object.
@@ -414,7 +420,10 @@ interface JQueryDeferred<T> extends JQueryGenericPromise<T> {
414
420
  * @param alwaysCallbackN Optional additional functions, or arrays of functions, that are called when the Deferred is resolved or rejected.
415
421
  * @see {@link https://api.jquery.com/deferred.always/}
416
422
  */
417
- always(alwaysCallback1?: JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[], ...alwaysCallbackN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryDeferred<T>;
423
+ always(
424
+ alwaysCallback1?: JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[],
425
+ ...alwaysCallbackN: Array<JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[]>
426
+ ): JQueryDeferred<T>;
418
427
  /**
419
428
  * Add handlers to be called when the Deferred object is resolved.
420
429
  *
@@ -422,7 +431,10 @@ interface JQueryDeferred<T> extends JQueryGenericPromise<T> {
422
431
  * @param doneCallbackN Optional additional functions, or arrays of functions, that are called when the Deferred is resolved.
423
432
  * @see {@link https://api.jquery.com/deferred.done/}
424
433
  */
425
- done(doneCallback1?: JQueryPromiseCallback<T>|JQueryPromiseCallback<T>[], ...doneCallbackN: Array<JQueryPromiseCallback<T>|JQueryPromiseCallback<T>[]>): JQueryDeferred<T>;
434
+ done(
435
+ doneCallback1?: JQueryPromiseCallback<T> | JQueryPromiseCallback<T>[],
436
+ ...doneCallbackN: Array<JQueryPromiseCallback<T> | JQueryPromiseCallback<T>[]>
437
+ ): JQueryDeferred<T>;
426
438
  /**
427
439
  * Add handlers to be called when the Deferred object is rejected.
428
440
  *
@@ -430,7 +442,10 @@ interface JQueryDeferred<T> extends JQueryGenericPromise<T> {
430
442
  * @param failCallbackN Optional additional functions, or arrays of functions, that are called when the Deferred is rejected.
431
443
  * @see {@link https://api.jquery.com/deferred.fail/}
432
444
  */
433
- fail(failCallback1?: JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[], ...failCallbackN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryDeferred<T>;
445
+ fail(
446
+ failCallback1?: JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[],
447
+ ...failCallbackN: Array<JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[]>
448
+ ): JQueryDeferred<T>;
434
449
  /**
435
450
  * Add handlers to be called when the Deferred object generates progress notifications.
436
451
  *
@@ -438,7 +453,10 @@ interface JQueryDeferred<T> extends JQueryGenericPromise<T> {
438
453
  * @param progressCallbackN Optional additional functions, or arrays of functions, to be called when the Deferred generates progress notifications.
439
454
  * @see {@link https://api.jquery.com/deferred.progress/}
440
455
  */
441
- progress(progressCallback1?: JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[], ...progressCallbackN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryDeferred<T>;
456
+ progress(
457
+ progressCallback1?: JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[],
458
+ ...progressCallbackN: Array<JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[]>
459
+ ): JQueryDeferred<T>;
442
460
 
443
461
  /**
444
462
  * Call the progressCallbacks on a Deferred object with the given args.
@@ -500,7 +518,11 @@ interface JQueryDeferred<T> extends JQueryGenericPromise<T> {
500
518
  promise(target?: any): JQueryPromise<T>;
501
519
 
502
520
  // Deprecated - given no typings
503
- pipe(doneFilter?: (x: any) => any, failFilter?: (x: any) => any, progressFilter?: (x: any) => any): JQueryPromise<any>;
521
+ pipe(
522
+ doneFilter?: (x: any) => any,
523
+ failFilter?: (x: any) => any,
524
+ progressFilter?: (x: any) => any,
525
+ ): JQueryPromise<any>;
504
526
  }
505
527
 
506
528
  /**
@@ -639,7 +661,14 @@ interface JQueryKeyEventObject extends JQueryInputEventObject {
639
661
  keyCode: number;
640
662
  }
641
663
 
642
- interface JQueryEventObject extends BaseJQueryEventObject, JQueryCustomEventObject, JQueryInputEventObject, JQueryMouseEventObject, JQueryKeyEventObject {
664
+ interface JQueryEventObject
665
+ extends
666
+ BaseJQueryEventObject,
667
+ JQueryCustomEventObject,
668
+ JQueryInputEventObject,
669
+ JQueryMouseEventObject,
670
+ JQueryKeyEventObject
671
+ {
643
672
  }
644
673
 
645
674
  /**
@@ -668,7 +697,7 @@ interface JQuerySupport {
668
697
  opacity?: boolean | undefined;
669
698
  optDisabled?: boolean | undefined;
670
699
  optSelected?: boolean | undefined;
671
- scriptEval? (): boolean;
700
+ scriptEval?(): boolean;
672
701
  style?: boolean | undefined;
673
702
  submitBubbles?: boolean | undefined;
674
703
  tbody?: boolean | undefined;
@@ -699,7 +728,7 @@ interface JQueryParam {
699
728
  */
700
729
  interface JQueryEventConstructor {
701
730
  (name: string, eventProperties?: any): JQueryEventObject;
702
- new (name: string, eventProperties?: any): JQueryEventObject;
731
+ new(name: string, eventProperties?: any): JQueryEventObject;
703
732
  }
704
733
 
705
734
  /**
@@ -779,11 +808,11 @@ interface JQueryAnimationOptions {
779
808
  }
780
809
 
781
810
  interface JQueryEasingFunction {
782
- ( percent: number ): number;
811
+ (percent: number): number;
783
812
  }
784
813
 
785
814
  interface JQueryEasingFunctions {
786
- [ name: string ]: JQueryEasingFunction;
815
+ [name: string]: JQueryEasingFunction;
787
816
  linear: JQueryEasingFunction;
788
817
  swing: JQueryEasingFunction;
789
818
  }
@@ -794,7 +823,6 @@ interface JQueryEasingFunctions {
794
823
  * @see {@link https://api.jquery.com/Types/#jQuery}
795
824
  */
796
825
  interface JQueryStatic {
797
-
798
826
  /**
799
827
  * Perform an asynchronous HTTP (Ajax) request.
800
828
  *
@@ -818,7 +846,10 @@ interface JQueryStatic {
818
846
  * @param handler A handler to set default values for future Ajax requests.
819
847
  * @see {@link https://api.jquery.com/jQuery.ajaxPrefilter/}
820
848
  */
821
- ajaxPrefilter(dataTypes: string, handler: (opts: any, originalOpts: JQueryAjaxSettings, jqXHR: JQueryXHR) => any): void;
849
+ ajaxPrefilter(
850
+ dataTypes: string,
851
+ handler: (opts: any, originalOpts: JQueryAjaxSettings, jqXHR: JQueryXHR) => any,
852
+ ): void;
822
853
  /**
823
854
  * Handle custom Ajax options or modify existing options before each request is sent and before they are processed by $.ajax().
824
855
  *
@@ -827,23 +858,26 @@ interface JQueryStatic {
827
858
  */
828
859
  ajaxPrefilter(handler: (opts: any, originalOpts: JQueryAjaxSettings, jqXHR: JQueryXHR) => any): void;
829
860
 
830
- /**
861
+ /**
831
862
  * Creates an object that handles the actual transmission of Ajax data.
832
863
  *
833
864
  * @param dataType A string identifying the data type to use.
834
865
  * @param handler A handler to return the new transport object to use with the data type provided in the first argument.
835
866
  * @see {@link https://api.jquery.com/jQuery.ajaxTransport/}
836
867
  */
837
- ajaxTransport(dataType: string, handler: (opts: any, originalOpts: JQueryAjaxSettings, jqXHR: JQueryXHR) => any): void;
868
+ ajaxTransport(
869
+ dataType: string,
870
+ handler: (opts: any, originalOpts: JQueryAjaxSettings, jqXHR: JQueryXHR) => any,
871
+ ): void;
838
872
 
839
873
  ajaxSettings: JQueryAjaxSettings;
840
874
 
841
- /**
842
- * Set default values for future Ajax requests. Its use is not recommended.
843
- *
844
- * @param options A set of key/value pairs that configure the default Ajax request. All options are optional.
845
- * @see {@link https://api.jquery.com/jQuery.ajaxSetup/}
846
- */
875
+ /**
876
+ * Set default values for future Ajax requests. Its use is not recommended.
877
+ *
878
+ * @param options A set of key/value pairs that configure the default Ajax request. All options are optional.
879
+ * @see {@link https://api.jquery.com/jQuery.ajaxSetup/}
880
+ */
847
881
  ajaxSetup(options: JQueryAjaxSettings): void;
848
882
 
849
883
  /**
@@ -864,14 +898,19 @@ interface JQueryStatic {
864
898
  * @param dataType The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html).
865
899
  * @see {@link https://api.jquery.com/jQuery.get/#jQuery-get-url-data-success-dataType}
866
900
  */
867
- get(url: string, data?: Object|string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any, dataType?: string): JQueryXHR;
901
+ get(
902
+ url: string,
903
+ data?: Object | string,
904
+ success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any,
905
+ dataType?: string,
906
+ ): JQueryXHR;
868
907
  /**
869
908
  * Load data from the server using a HTTP GET request.
870
909
  *
871
910
  * @param settings The JQueryAjaxSettings to be used for the request
872
911
  * @see {@link https://api.jquery.com/jQuery.get/#jQuery-get-settings}
873
912
  */
874
- get(settings : JQueryAjaxSettings): JQueryXHR;
913
+ get(settings: JQueryAjaxSettings): JQueryXHR;
875
914
  /**
876
915
  * Load JSON-encoded data from the server using a GET HTTP request.
877
916
  *
@@ -888,7 +927,11 @@ interface JQueryStatic {
888
927
  * @param success A callback function that is executed if the request succeeds.
889
928
  * @see {@link https://api.jquery.com/jQuery.getJSON/}
890
929
  */
891
- getJSON(url: string, data?: Object|string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any): JQueryXHR;
930
+ getJSON(
931
+ url: string,
932
+ data?: Object | string,
933
+ success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any,
934
+ ): JQueryXHR;
892
935
  /**
893
936
  * Load a JavaScript file from the server using a GET HTTP request, then execute it.
894
937
  *
@@ -923,14 +966,19 @@ interface JQueryStatic {
923
966
  * @param dataType The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).
924
967
  * @see {@link https://api.jquery.com/jQuery.post/#jQuery-post-url-data-success-dataType}
925
968
  */
926
- post(url: string, data?: Object|string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any, dataType?: string): JQueryXHR;
969
+ post(
970
+ url: string,
971
+ data?: Object | string,
972
+ success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any,
973
+ dataType?: string,
974
+ ): JQueryXHR;
927
975
  /**
928
976
  * Load data from the server using a HTTP POST request.
929
977
  *
930
978
  * @param settings The JQueryAjaxSettings to be used for the request
931
979
  * @see {@link https://api.jquery.com/jQuery.post/#jQuery-post-settings}
932
980
  */
933
- post(settings : JQueryAjaxSettings): JQueryXHR;
981
+ post(settings: JQueryAjaxSettings): JQueryXHR;
934
982
  /**
935
983
  * A multi-purpose callbacks list object that provides a powerful way to manage callback lists.
936
984
  *
@@ -954,7 +1002,7 @@ interface JQueryStatic {
954
1002
  * @param context A DOM Element, Document, or jQuery to use as context
955
1003
  * @see {@link https://api.jquery.com/jQuery/#jQuery-selector-context}
956
1004
  */
957
- (selector: string, context?: Element|JQuery): JQuery;
1005
+ (selector: string, context?: Element | JQuery): JQuery;
958
1006
 
959
1007
  /**
960
1008
  * Accepts a string containing a CSS selector which is then used to match a set of elements.
@@ -1034,13 +1082,13 @@ interface JQueryStatic {
1034
1082
  * @param deferreds One or more Deferred objects, or plain JavaScript objects.
1035
1083
  * @see {@link https://api.jquery.com/jQuery.when/}
1036
1084
  */
1037
- when<T>(...deferreds: Array<T|JQueryPromise<T>/* as JQueryDeferred<T> */>): JQueryPromise<T>;
1085
+ when<T>(...deferreds: Array<T | JQueryPromise<T> /* as JQueryDeferred<T> */>): JQueryPromise<T>;
1038
1086
 
1039
1087
  /**
1040
1088
  * Hook directly into jQuery to override how particular CSS properties are retrieved or set, normalize CSS property naming, or create custom properties.
1041
1089
  * @see {@link https://api.jquery.com/jQuery.cssHooks/}
1042
1090
  */
1043
- cssHooks: { [key: string]: any; };
1091
+ cssHooks: { [key: string]: any };
1044
1092
 
1045
1093
  /**
1046
1094
  * 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 +1196,7 @@ interface JQueryStatic {
1148
1196
  */
1149
1197
  interval: number;
1150
1198
  stop: () => void;
1151
- speeds: { slow: number; fast: number; };
1199
+ speeds: { slow: number; fast: number };
1152
1200
  /**
1153
1201
  * Globally disable all animations.
1154
1202
  * @see {@link https://api.jquery.com/jQuery.fx.off/}
@@ -1213,8 +1261,8 @@ interface JQueryStatic {
1213
1261
  */
1214
1262
  each<T>(
1215
1263
  collection: T[],
1216
- callback: (indexInArray: number, valueOfElement: T) => boolean | void
1217
- ): T[];
1264
+ callback: (indexInArray: number, valueOfElement: T) => boolean | void,
1265
+ ): T[];
1218
1266
 
1219
1267
  /**
1220
1268
  * 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 +1275,8 @@ interface JQueryStatic {
1227
1275
  each<T extends Object>(
1228
1276
  collection: T,
1229
1277
  // TODO: `(keyInObject: keyof T, valueOfElement: T[keyof T])`, when TypeScript 2.1 allowed in repository
1230
- callback: (keyInObject: string, valueOfElement: any) => boolean | void
1231
- ): T;
1278
+ callback: (keyInObject: string, valueOfElement: any) => boolean | void,
1279
+ ): T;
1232
1280
 
1233
1281
  /**
1234
1282
  * Merge the contents of two or more objects together into the first object.
@@ -1404,7 +1452,21 @@ interface JQueryStatic {
1404
1452
  * @param obj Object to get the internal JavaScript [[Class]] of.
1405
1453
  * @see {@link https://api.jquery.com/jQuery.type/}
1406
1454
  */
1407
- type(obj: any): "array" | "boolean" | "date" | "error" | "function" | "null" | "number" | "object" | "regexp" | "string" | "symbol" | "undefined";
1455
+ type(
1456
+ obj: any,
1457
+ ):
1458
+ | "array"
1459
+ | "boolean"
1460
+ | "date"
1461
+ | "error"
1462
+ | "function"
1463
+ | "null"
1464
+ | "number"
1465
+ | "object"
1466
+ | "regexp"
1467
+ | "string"
1468
+ | "symbol"
1469
+ | "undefined";
1408
1470
 
1409
1471
  /**
1410
1472
  * 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 +1506,14 @@ interface JQuery {
1444
1506
  * @param handler The function to be invoked.
1445
1507
  * @see {@link https://api.jquery.com/ajaxError/}
1446
1508
  */
1447
- ajaxError(handler: (event: JQueryEventObject, jqXHR: JQueryXHR, ajaxSettings: JQueryAjaxSettings, thrownError: any) => any): JQuery;
1509
+ ajaxError(
1510
+ handler: (
1511
+ event: JQueryEventObject,
1512
+ jqXHR: JQueryXHR,
1513
+ ajaxSettings: JQueryAjaxSettings,
1514
+ thrownError: any,
1515
+ ) => any,
1516
+ ): JQuery;
1448
1517
  /**
1449
1518
  * Attach a function to be executed before an Ajax request is sent. This is an Ajax Event.
1450
1519
  *
@@ -1472,7 +1541,9 @@ interface JQuery {
1472
1541
  * @param handler The function to be invoked.
1473
1542
  * @see {@link https://api.jquery.com/ajaxSuccess/}
1474
1543
  */
1475
- ajaxSuccess(handler: (event: JQueryEventObject, XMLHttpRequest: XMLHttpRequest, ajaxOptions: JQueryAjaxSettings) => any): JQuery;
1544
+ ajaxSuccess(
1545
+ handler: (event: JQueryEventObject, XMLHttpRequest: XMLHttpRequest, ajaxOptions: JQueryAjaxSettings) => any,
1546
+ ): JQuery;
1476
1547
 
1477
1548
  /**
1478
1549
  * Load data from the server and place the returned HTML into the matched element.
@@ -1482,7 +1553,11 @@ interface JQuery {
1482
1553
  * @param complete A callback function that is executed when the request completes.
1483
1554
  * @see {@link https://api.jquery.com/load/}
1484
1555
  */
1485
- load(url: string, data?: string|Object, complete?: (responseText: string, textStatus: string, XMLHttpRequest: XMLHttpRequest) => any): JQuery;
1556
+ load(
1557
+ url: string,
1558
+ data?: string | Object,
1559
+ complete?: (responseText: string, textStatus: string, XMLHttpRequest: XMLHttpRequest) => any,
1560
+ ): JQuery;
1486
1561
 
1487
1562
  /**
1488
1563
  * Encode a set of form elements as a string for submission.
@@ -1530,7 +1605,7 @@ interface JQuery {
1530
1605
  * @param value A value to set for the attribute. If this is `null`, the attribute will be deleted.
1531
1606
  * @see {@link https://api.jquery.com/attr/#attr-attributeName-value}
1532
1607
  */
1533
- attr(attributeName: string, value: string|number|null): JQuery;
1608
+ attr(attributeName: string, value: string | number | null): JQuery;
1534
1609
  /**
1535
1610
  * Set one or more attributes for the set of matched elements.
1536
1611
  *
@@ -1538,7 +1613,7 @@ interface JQuery {
1538
1613
  * @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
1614
  * @see {@link https://api.jquery.com/attr/#attr-attributeName-function}
1540
1615
  */
1541
- attr(attributeName: string, func: (index: number, attr: string) => string|number): JQuery;
1616
+ attr(attributeName: string, func: (index: number, attr: string) => string | number): JQuery;
1542
1617
  /**
1543
1618
  * Set one or more attributes for the set of matched elements.
1544
1619
  *
@@ -1589,7 +1664,7 @@ interface JQuery {
1589
1664
  * @param value A value to set for the property.
1590
1665
  * @see {@link https://api.jquery.com/prop/#prop-propertyName-value}
1591
1666
  */
1592
- prop(propertyName: string, value: string|number|boolean): JQuery;
1667
+ prop(propertyName: string, value: string | number | boolean): JQuery;
1593
1668
  /**
1594
1669
  * Set one or more properties for the set of matched elements.
1595
1670
  *
@@ -1672,7 +1747,7 @@ interface JQuery {
1672
1747
  * @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
1748
  * @see {@link https://api.jquery.com/val/#val-value}
1674
1749
  */
1675
- val(value: string|string[]|number): JQuery;
1750
+ val(value: string | string[] | number): JQuery;
1676
1751
  /**
1677
1752
  * Set the value of each element in the set of matched elements.
1678
1753
  *
@@ -1703,7 +1778,7 @@ interface JQuery {
1703
1778
  * @param value A value to set for the property.
1704
1779
  * @see {@link https://api.jquery.com/css/#css-propertyName-value}
1705
1780
  */
1706
- css(propertyName: string, value: string|number): JQuery;
1781
+ css(propertyName: string, value: string | number): JQuery;
1707
1782
  /**
1708
1783
  * Set one or more CSS properties for the set of matched elements.
1709
1784
  *
@@ -1711,7 +1786,7 @@ interface JQuery {
1711
1786
  * @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
1787
  * @see {@link https://api.jquery.com/css/#css-propertyName-function}
1713
1788
  */
1714
- css(propertyName: string, value: (index: number, value: string) => string|number): JQuery;
1789
+ css(propertyName: string, value: (index: number, value: string) => string | number): JQuery;
1715
1790
  /**
1716
1791
  * Set one or more CSS properties for the set of matched elements.
1717
1792
  *
@@ -1731,14 +1806,14 @@ interface JQuery {
1731
1806
  * @param value An integer representing the number of pixels, or an integer with an optional unit of measure appended (as a string).
1732
1807
  * @see {@link https://api.jquery.com/height/#height-value}
1733
1808
  */
1734
- height(value: number|string): JQuery;
1809
+ height(value: number | string): JQuery;
1735
1810
  /**
1736
1811
  * Set the CSS height of every matched element.
1737
1812
  *
1738
1813
  * @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
1814
  * @see {@link https://api.jquery.com/height/#height-function}
1740
1815
  */
1741
- height(func: (index: number, height: number) => number|string): JQuery;
1816
+ height(func: (index: number, height: number) => number | string): JQuery;
1742
1817
 
1743
1818
  /**
1744
1819
  * Get the current computed height for the first element in the set of matched elements, including padding but not border.
@@ -1752,7 +1827,7 @@ interface JQuery {
1752
1827
  * @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
1753
1828
  * @see {@link https://api.jquery.com/innerHeight/#innerHeight-value}
1754
1829
  */
1755
- innerHeight(value: number|string): JQuery;
1830
+ innerHeight(value: number | string): JQuery;
1756
1831
 
1757
1832
  /**
1758
1833
  * Get the current computed width for the first element in the set of matched elements, including padding but not border.
@@ -1766,7 +1841,7 @@ interface JQuery {
1766
1841
  * @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
1767
1842
  * @see {@link https://api.jquery.com/innerWidth/#innerWidth-value}
1768
1843
  */
1769
- innerWidth(value: number|string): JQuery;
1844
+ innerWidth(value: number | string): JQuery;
1770
1845
 
1771
1846
  /**
1772
1847
  * Get the current coordinates of the first element in the set of matched elements, relative to the document.
@@ -1802,7 +1877,7 @@ interface JQuery {
1802
1877
  * @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
1803
1878
  * @see {@link https://api.jquery.com/outerHeight/#outerHeight-value}
1804
1879
  */
1805
- outerHeight(value: number|string): JQuery;
1880
+ outerHeight(value: number | string): JQuery;
1806
1881
 
1807
1882
  /**
1808
1883
  * Get the current computed width for the first element in the set of matched elements, including padding and border.
@@ -1818,7 +1893,7 @@ interface JQuery {
1818
1893
  * @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
1819
1894
  * @see {@link https://api.jquery.com/outerWidth/#outerWidth-value}
1820
1895
  */
1821
- outerWidth(value: number|string): JQuery;
1896
+ outerWidth(value: number | string): JQuery;
1822
1897
 
1823
1898
  /**
1824
1899
  * Get the current coordinates of the first element in the set of matched elements, relative to the offset parent.
@@ -1863,14 +1938,14 @@ interface JQuery {
1863
1938
  * @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
1864
1939
  * @see {@link https://api.jquery.com/width/#width-value}
1865
1940
  */
1866
- width(value: number|string): JQuery;
1941
+ width(value: number | string): JQuery;
1867
1942
  /**
1868
1943
  * Set the CSS width of each element in the set of matched elements.
1869
1944
  *
1870
1945
  * @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
1946
  * @see {@link https://api.jquery.com/width/#width-function}
1872
1947
  */
1873
- width(func: (index: number, width: number) => number|string): JQuery;
1948
+ width(func: (index: number, width: number) => number | string): JQuery;
1874
1949
 
1875
1950
  /**
1876
1951
  * Remove from the queue all items that have not yet been run.
@@ -1901,7 +1976,7 @@ interface JQuery {
1901
1976
  * @param obj An object of key-value pairs of data to update.
1902
1977
  * @see {@link https://api.jquery.com/data/#data-obj}
1903
1978
  */
1904
- data(obj: { [key: string]: any; }): JQuery;
1979
+ data(obj: { [key: string]: any }): JQuery;
1905
1980
  /**
1906
1981
  * 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
1982
  * @see {@link https://api.jquery.com/data/#data}
@@ -1953,7 +2028,7 @@ interface JQuery {
1953
2028
  * @param complete A function to call once the animation is complete.
1954
2029
  * @see {@link https://api.jquery.com/animate/#animate-properties-duration-easing-complete}
1955
2030
  */
1956
- animate(properties: Object, duration?: string|number, complete?: Function): JQuery;
2031
+ animate(properties: Object, duration?: string | number, complete?: Function): JQuery;
1957
2032
  /**
1958
2033
  * Perform a custom animation of a set of CSS properties.
1959
2034
  *
@@ -1963,7 +2038,7 @@ interface JQuery {
1963
2038
  * @param complete A function to call once the animation is complete.
1964
2039
  * @see {@link https://api.jquery.com/animate/#animate-properties-duration-easing-complete}
1965
2040
  */
1966
- animate(properties: Object, duration?: string|number, easing?: string, complete?: Function): JQuery;
2041
+ animate(properties: Object, duration?: string | number, easing?: string, complete?: Function): JQuery;
1967
2042
  /**
1968
2043
  * Perform a custom animation of a set of CSS properties.
1969
2044
  *
@@ -1989,7 +2064,7 @@ interface JQuery {
1989
2064
  * @param complete A function to call once the animation is complete.
1990
2065
  * @see {@link https://api.jquery.com/fadeIn/#fadeIn-duration-complete}
1991
2066
  */
1992
- fadeIn(duration?: number|string, complete?: Function): JQuery;
2067
+ fadeIn(duration?: number | string, complete?: Function): JQuery;
1993
2068
  /**
1994
2069
  * Display the matched elements by fading them to opaque.
1995
2070
  *
@@ -1998,7 +2073,7 @@ interface JQuery {
1998
2073
  * @param complete A function to call once the animation is complete.
1999
2074
  * @see {@link https://api.jquery.com/fadeIn/#fadeIn-duration-easing-complete}
2000
2075
  */
2001
- fadeIn(duration?: number|string, easing?: string, complete?: Function): JQuery;
2076
+ fadeIn(duration?: number | string, easing?: string, complete?: Function): JQuery;
2002
2077
  /**
2003
2078
  * Display the matched elements by fading them to opaque.
2004
2079
  *
@@ -2014,7 +2089,7 @@ interface JQuery {
2014
2089
  * @param complete A function to call once the animation is complete.
2015
2090
  * @see {@link https://api.jquery.com/fadeOut/#fadeOut-duration-complete}
2016
2091
  */
2017
- fadeOut(duration?: number|string, complete?: Function): JQuery;
2092
+ fadeOut(duration?: number | string, complete?: Function): JQuery;
2018
2093
  /**
2019
2094
  * Hide the matched elements by fading them to transparent.
2020
2095
  *
@@ -2023,7 +2098,7 @@ interface JQuery {
2023
2098
  * @param complete A function to call once the animation is complete.
2024
2099
  * @see {@link https://api.jquery.com/fadeOut/#fadeOut-duration-easing-complete}
2025
2100
  */
2026
- fadeOut(duration?: number|string, easing?: string, complete?: Function): JQuery;
2101
+ fadeOut(duration?: number | string, easing?: string, complete?: Function): JQuery;
2027
2102
  /**
2028
2103
  * Hide the matched elements by fading them to transparent.
2029
2104
  *
@@ -2040,7 +2115,7 @@ interface JQuery {
2040
2115
  * @param complete A function to call once the animation is complete.
2041
2116
  * @see {@link https://api.jquery.com/fadeTo/#fadeTo-duration-opacity-complete}
2042
2117
  */
2043
- fadeTo(duration: string|number, opacity: number, complete?: Function): JQuery;
2118
+ fadeTo(duration: string | number, opacity: number, complete?: Function): JQuery;
2044
2119
  /**
2045
2120
  * Adjust the opacity of the matched elements.
2046
2121
  *
@@ -2050,7 +2125,7 @@ interface JQuery {
2050
2125
  * @param complete A function to call once the animation is complete.
2051
2126
  * @see {@link https://api.jquery.com/fadeTo/#fadeTo-duration-opacity-easing-complete}
2052
2127
  */
2053
- fadeTo(duration: string|number, opacity: number, easing?: string, complete?: Function): JQuery;
2128
+ fadeTo(duration: string | number, opacity: number, easing?: string, complete?: Function): JQuery;
2054
2129
 
2055
2130
  /**
2056
2131
  * Display or hide the matched elements by animating their opacity.
@@ -2059,7 +2134,7 @@ interface JQuery {
2059
2134
  * @param complete A function to call once the animation is complete.
2060
2135
  * @see {@link https://api.jquery.com/fadeToggle/#fadeToggle-duration-easing-complete}
2061
2136
  */
2062
- fadeToggle(duration?: number|string, complete?: Function): JQuery;
2137
+ fadeToggle(duration?: number | string, complete?: Function): JQuery;
2063
2138
  /**
2064
2139
  * Display or hide the matched elements by animating their opacity.
2065
2140
  *
@@ -2068,7 +2143,7 @@ interface JQuery {
2068
2143
  * @param complete A function to call once the animation is complete.
2069
2144
  * @see {@link https://api.jquery.com/fadeToggle/#fadeToggle-duration-easing-complete}
2070
2145
  */
2071
- fadeToggle(duration?: number|string, easing?: string, complete?: Function): JQuery;
2146
+ fadeToggle(duration?: number | string, easing?: string, complete?: Function): JQuery;
2072
2147
  /**
2073
2148
  * Display or hide the matched elements by animating their opacity.
2074
2149
  *
@@ -2092,7 +2167,7 @@ interface JQuery {
2092
2167
  * @param complete A function to call once the animation is complete.
2093
2168
  * @see {@link https://api.jquery.com/hide/#hide}
2094
2169
  */
2095
- hide(duration?: number|string, complete?: Function): JQuery;
2170
+ hide(duration?: number | string, complete?: Function): JQuery;
2096
2171
  /**
2097
2172
  * Hide the matched elements.
2098
2173
  *
@@ -2101,7 +2176,7 @@ interface JQuery {
2101
2176
  * @param complete A function to call once the animation is complete.
2102
2177
  * @see {@link https://api.jquery.com/hide/#hide-duration-easing-complete}
2103
2178
  */
2104
- hide(duration?: number|string, easing?: string, complete?: Function): JQuery;
2179
+ hide(duration?: number | string, easing?: string, complete?: Function): JQuery;
2105
2180
  /**
2106
2181
  * Hide the matched elements.
2107
2182
  *
@@ -2117,7 +2192,7 @@ interface JQuery {
2117
2192
  * @param complete A function to call once the animation is complete.
2118
2193
  * @see {@link https://api.jquery.com/show/#show}
2119
2194
  */
2120
- show(duration?: number|string, complete?: Function): JQuery;
2195
+ show(duration?: number | string, complete?: Function): JQuery;
2121
2196
  /**
2122
2197
  * Display the matched elements.
2123
2198
  *
@@ -2126,7 +2201,7 @@ interface JQuery {
2126
2201
  * @param complete A function to call once the animation is complete.
2127
2202
  * @see {@link https://api.jquery.com/show/#show-duration-easing-complete}
2128
2203
  */
2129
- show(duration?: number|string, easing?: string, complete?: Function): JQuery;
2204
+ show(duration?: number | string, easing?: string, complete?: Function): JQuery;
2130
2205
  /**
2131
2206
  * Display the matched elements.
2132
2207
  *
@@ -2142,7 +2217,7 @@ interface JQuery {
2142
2217
  * @param complete A function to call once the animation is complete.
2143
2218
  * @see {@link https://api.jquery.com/slideDown/#slideDown-duration-complete}
2144
2219
  */
2145
- slideDown(duration?: number|string, complete?: Function): JQuery;
2220
+ slideDown(duration?: number | string, complete?: Function): JQuery;
2146
2221
  /**
2147
2222
  * Display the matched elements with a sliding motion.
2148
2223
  *
@@ -2151,7 +2226,7 @@ interface JQuery {
2151
2226
  * @param complete A function to call once the animation is complete.
2152
2227
  * @see {@link https://api.jquery.com/slideDown/#slideDown-duration-easing-complete}
2153
2228
  */
2154
- slideDown(duration?: number|string, easing?: string, complete?: Function): JQuery;
2229
+ slideDown(duration?: number | string, easing?: string, complete?: Function): JQuery;
2155
2230
  /**
2156
2231
  * Display the matched elements with a sliding motion.
2157
2232
  *
@@ -2167,7 +2242,7 @@ interface JQuery {
2167
2242
  * @param complete A function to call once the animation is complete.
2168
2243
  * @see {@link https://api.jquery.com/slideToggle/#slideToggle-duration-complete}
2169
2244
  */
2170
- slideToggle(duration?: number|string, complete?: Function): JQuery;
2245
+ slideToggle(duration?: number | string, complete?: Function): JQuery;
2171
2246
  /**
2172
2247
  * Display or hide the matched elements with a sliding motion.
2173
2248
  *
@@ -2176,7 +2251,7 @@ interface JQuery {
2176
2251
  * @param complete A function to call once the animation is complete.
2177
2252
  * @see {@link https://api.jquery.com/slideToggle/#slideToggle-duration-easing-complete}
2178
2253
  */
2179
- slideToggle(duration?: number|string, easing?: string, complete?: Function): JQuery;
2254
+ slideToggle(duration?: number | string, easing?: string, complete?: Function): JQuery;
2180
2255
  /**
2181
2256
  * Display or hide the matched elements with a sliding motion.
2182
2257
  *
@@ -2192,7 +2267,7 @@ interface JQuery {
2192
2267
  * @param complete A function to call once the animation is complete.
2193
2268
  * @see {@link https://api.jquery.com/slideUp/#slideUp-duration-complete}
2194
2269
  */
2195
- slideUp(duration?: number|string, complete?: Function): JQuery;
2270
+ slideUp(duration?: number | string, complete?: Function): JQuery;
2196
2271
  /**
2197
2272
  * Hide the matched elements with a sliding motion.
2198
2273
  *
@@ -2201,7 +2276,7 @@ interface JQuery {
2201
2276
  * @param complete A function to call once the animation is complete.
2202
2277
  * @see {@link https://api.jquery.com/slideUp/#slideUp-duration-easing-complete}
2203
2278
  */
2204
- slideUp(duration?: number|string, easing?: string, complete?: Function): JQuery;
2279
+ slideUp(duration?: number | string, easing?: string, complete?: Function): JQuery;
2205
2280
  /**
2206
2281
  * Hide the matched elements with a sliding motion.
2207
2282
  *
@@ -2235,7 +2310,7 @@ interface JQuery {
2235
2310
  * @param complete A function to call once the animation is complete.
2236
2311
  * @see {@link https://api.jquery.com/toggle/#toggle-duration-complete}
2237
2312
  */
2238
- toggle(duration?: number|string, complete?: Function): JQuery;
2313
+ toggle(duration?: number | string, complete?: Function): JQuery;
2239
2314
  /**
2240
2315
  * Display or hide the matched elements.
2241
2316
  *
@@ -2244,7 +2319,7 @@ interface JQuery {
2244
2319
  * @param complete A function to call once the animation is complete.
2245
2320
  * @see {@link https://api.jquery.com/toggle/#toggle-duration-easing-complete}
2246
2321
  */
2247
- toggle(duration?: number|string, easing?: string, complete?: Function): JQuery;
2322
+ toggle(duration?: number | string, easing?: string, complete?: Function): JQuery;
2248
2323
  /**
2249
2324
  * Display or hide the matched elements.
2250
2325
  *
@@ -2416,7 +2491,12 @@ interface JQuery {
2416
2491
  * 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
2492
  * @see {@link https://api.jquery.com/delegate/#delegate-selector-eventType-eventData-handler}
2418
2493
  */
2419
- delegate(selector: any, eventType: string, eventData: any, handler: (eventObject: JQueryEventObject) => any): JQuery;
2494
+ delegate(
2495
+ selector: any,
2496
+ eventType: string,
2497
+ eventData: any,
2498
+ handler: (eventObject: JQueryEventObject) => any,
2499
+ ): JQuery;
2420
2500
 
2421
2501
  /**
2422
2502
  * Trigger the "focus" event on an element.
@@ -2488,7 +2568,10 @@ interface JQuery {
2488
2568
  * @param handlerOut A function to execute when the mouse pointer leaves the element.
2489
2569
  * @see {@link https://api.jquery.com/hover/#hover-handlerIn-handlerOut}
2490
2570
  */
2491
- hover(handlerIn: (eventObject: JQueryEventObject) => any, handlerOut: (eventObject: JQueryEventObject) => any): JQuery;
2571
+ hover(
2572
+ handlerIn: (eventObject: JQueryEventObject) => any,
2573
+ handlerOut: (eventObject: JQueryEventObject) => any,
2574
+ ): JQuery;
2492
2575
  /**
2493
2576
  * Bind a single handler to the matched elements, to be executed when the mouse pointer enters or leaves the elements.
2494
2577
  *
@@ -2760,7 +2843,7 @@ interface JQuery {
2760
2843
  * @param selector A selector which should match the one originally passed to .on() when attaching event handlers.
2761
2844
  * @see {@link https://api.jquery.com/off/#off-events-selector}
2762
2845
  */
2763
- off(events: { [key: string]: any; }, selector?: string): JQuery;
2846
+ off(events: { [key: string]: any }, selector?: string): JQuery;
2764
2847
 
2765
2848
  /**
2766
2849
  * Attach an event handler function for one or more events to the selected elements.
@@ -2786,8 +2869,8 @@ interface JQuery {
2786
2869
  * @param data Data to be passed to the handler in event.data when an event is triggered.
2787
2870
  * @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
2871
  * @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
2789
- */
2790
- on(events: string, data : any, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery;
2872
+ */
2873
+ on(events: string, data: any, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery;
2791
2874
  /**
2792
2875
  * Attach an event handler function for one or more events to the selected elements.
2793
2876
  *
@@ -2797,7 +2880,12 @@ interface JQuery {
2797
2880
  * @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
2881
  * @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
2799
2882
  */
2800
- on(events: string, selector: string, data: any, handler: (eventObject: JQueryEventObject, ...eventData: any[]) => any): JQuery;
2883
+ on(
2884
+ events: string,
2885
+ selector: string,
2886
+ data: any,
2887
+ handler: (eventObject: JQueryEventObject, ...eventData: any[]) => any,
2888
+ ): JQuery;
2801
2889
  /**
2802
2890
  * Attach an event handler function for one or more events to the selected elements.
2803
2891
  *
@@ -2806,7 +2894,11 @@ interface JQuery {
2806
2894
  * @param data Data to be passed to the handler in event.data when an event occurs.
2807
2895
  * @see {@link https://api.jquery.com/on/#on-events-selector-data}
2808
2896
  */
2809
- on(events: { [key: string]: (eventObject: JQueryEventObject, ...args: any[]) => any; }, selector?: string, data?: any): JQuery;
2897
+ on(
2898
+ events: { [key: string]: (eventObject: JQueryEventObject, ...args: any[]) => any },
2899
+ selector?: string,
2900
+ data?: any,
2901
+ ): JQuery;
2810
2902
  /**
2811
2903
  * Attach an event handler function for one or more events to the selected elements.
2812
2904
  *
@@ -2814,7 +2906,7 @@ interface JQuery {
2814
2906
  * @param data Data to be passed to the handler in event.data when an event occurs.
2815
2907
  * @see {@link https://api.jquery.com/on/#on-events-selector-data}
2816
2908
  */
2817
- on(events: { [key: string]: (eventObject: JQueryEventObject, ...args: any[]) => any; }, data?: any): JQuery;
2909
+ on(events: { [key: string]: (eventObject: JQueryEventObject, ...args: any[]) => any }, data?: any): JQuery;
2818
2910
 
2819
2911
  /**
2820
2912
  * Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
@@ -2862,7 +2954,7 @@ interface JQuery {
2862
2954
  * @param data Data to be passed to the handler in event.data when an event occurs.
2863
2955
  * @see {@link https://api.jquery.com/one/#one-events-selector-data}
2864
2956
  */
2865
- one(events: { [key: string]: any; }, selector?: string, data?: any): JQuery;
2957
+ one(events: { [key: string]: any }, selector?: string, data?: any): JQuery;
2866
2958
 
2867
2959
  /**
2868
2960
  * Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
@@ -2871,8 +2963,7 @@ interface JQuery {
2871
2963
  * @param data Data to be passed to the handler in event.data when an event occurs.
2872
2964
  * @see {@link https://api.jquery.com/one/#one-events-selector-data}
2873
2965
  */
2874
- one(events: { [key: string]: any; }, data?: any): JQuery;
2875
-
2966
+ one(events: { [key: string]: any }, data?: any): JQuery;
2876
2967
 
2877
2968
  /**
2878
2969
  * Specify a function to execute when the DOM is fully loaded.
@@ -2973,7 +3064,7 @@ interface JQuery {
2973
3064
  * @param extraParameters Additional parameters to pass along to the event handler.
2974
3065
  * @see {@link https://api.jquery.com/trigger/#trigger-eventType-extraParameters}
2975
3066
  */
2976
- trigger(eventType: string, extraParameters?: any[]|Object): JQuery;
3067
+ trigger(eventType: string, extraParameters?: any[] | Object): JQuery;
2977
3068
  /**
2978
3069
  * Execute all handlers and behaviors attached to the matched elements for the given event type.
2979
3070
  *
@@ -2981,7 +3072,7 @@ interface JQuery {
2981
3072
  * @param extraParameters Additional parameters to pass along to the event handler.
2982
3073
  * @see {@link https://api.jquery.com/trigger/#trigger-event-extraParameters}
2983
3074
  */
2984
- trigger(event: JQueryEventObject, extraParameters?: any[]|Object): JQuery;
3075
+ trigger(event: JQueryEventObject, extraParameters?: any[] | Object): JQuery;
2985
3076
 
2986
3077
  /**
2987
3078
  * Execute all handlers attached to an element for an event.
@@ -3119,14 +3210,14 @@ interface JQuery {
3119
3210
  * @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
3211
  * @see {@link https://api.jquery.com/after/#after-content-content}
3121
3212
  */
3122
- after(content1: JQuery|any[]|Element|DocumentFragment|Text|string, ...content2: any[]): JQuery;
3213
+ after(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): JQuery;
3123
3214
  /**
3124
3215
  * Insert content, specified by the parameter, after each element in the set of matched elements.
3125
3216
  *
3126
3217
  * @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
3218
  * @see {@link https://api.jquery.com/after/#after-function}
3128
3219
  */
3129
- after(func: (index: number, html: string) => string|Element|JQuery): JQuery;
3220
+ after(func: (index: number, html: string) => string | Element | JQuery): JQuery;
3130
3221
 
3131
3222
  /**
3132
3223
  * Insert content, specified by the parameter, to the end of each element in the set of matched elements.
@@ -3135,14 +3226,14 @@ interface JQuery {
3135
3226
  * @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
3227
  * @see {@link https://api.jquery.com/append/#append-content-content}
3137
3228
  */
3138
- append(content1: JQuery|any[]|Element|DocumentFragment|Text|string, ...content2: any[]): JQuery;
3229
+ append(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): JQuery;
3139
3230
  /**
3140
3231
  * Insert content, specified by the parameter, to the end of each element in the set of matched elements.
3141
3232
  *
3142
3233
  * @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
3234
  * @see {@link https://api.jquery.com/append/#append-function}
3144
3235
  */
3145
- append(func: (index: number, html: string) => string|Element|JQuery): JQuery;
3236
+ append(func: (index: number, html: string) => string | Element | JQuery): JQuery;
3146
3237
 
3147
3238
  /**
3148
3239
  * Insert every element in the set of matched elements to the end of the target.
@@ -3150,7 +3241,7 @@ interface JQuery {
3150
3241
  * @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
3242
  * @see {@link https://api.jquery.com/appendTo/}
3152
3243
  */
3153
- appendTo(target: JQuery|any[]|Element|string): JQuery;
3244
+ appendTo(target: JQuery | any[] | Element | string): JQuery;
3154
3245
 
3155
3246
  /**
3156
3247
  * Insert content, specified by the parameter, before each element in the set of matched elements.
@@ -3159,14 +3250,14 @@ interface JQuery {
3159
3250
  * @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
3251
  * @see {@link https://api.jquery.com/before/#before-content-content}
3161
3252
  */
3162
- before(content1: JQuery|any[]|Element|DocumentFragment|Text|string, ...content2: any[]): JQuery;
3253
+ before(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): JQuery;
3163
3254
  /**
3164
3255
  * Insert content, specified by the parameter, before each element in the set of matched elements.
3165
3256
  *
3166
3257
  * @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
3258
  * @see {@link https://api.jquery.com/before/#before-function}
3168
3259
  */
3169
- before(func: (index: number, html: string) => string|Element|JQuery): JQuery;
3260
+ before(func: (index: number, html: string) => string | Element | JQuery): JQuery;
3170
3261
 
3171
3262
  /**
3172
3263
  * Create a deep copy of the set of matched elements.
@@ -3197,7 +3288,7 @@ interface JQuery {
3197
3288
  * @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
3289
  * @see {@link https://api.jquery.com/insertAfter/}
3199
3290
  */
3200
- insertAfter(target: JQuery|any[]|Element|Text|string): JQuery;
3291
+ insertAfter(target: JQuery | any[] | Element | Text | string): JQuery;
3201
3292
 
3202
3293
  /**
3203
3294
  * Insert every element in the set of matched elements before the target.
@@ -3205,7 +3296,7 @@ interface JQuery {
3205
3296
  * @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
3297
  * @see {@link https://api.jquery.com/insertBefore/}
3207
3298
  */
3208
- insertBefore(target: JQuery|any[]|Element|Text|string): JQuery;
3299
+ insertBefore(target: JQuery | any[] | Element | Text | string): JQuery;
3209
3300
 
3210
3301
  /**
3211
3302
  * Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
@@ -3214,14 +3305,14 @@ interface JQuery {
3214
3305
  * @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
3306
  * @see {@link https://api.jquery.com/prepend/#prepend-content-content}
3216
3307
  */
3217
- prepend(content1: JQuery|any[]|Element|DocumentFragment|Text|string, ...content2: any[]): JQuery;
3308
+ prepend(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): JQuery;
3218
3309
  /**
3219
3310
  * Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
3220
3311
  *
3221
3312
  * @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
3313
  * @see {@link https://api.jquery.com/prepend/#prepend-function}
3223
3314
  */
3224
- prepend(func: (index: number, html: string) => string|Element|JQuery): JQuery;
3315
+ prepend(func: (index: number, html: string) => string | Element | JQuery): JQuery;
3225
3316
 
3226
3317
  /**
3227
3318
  * Insert every element in the set of matched elements to the beginning of the target.
@@ -3229,7 +3320,7 @@ interface JQuery {
3229
3320
  * @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
3321
  * @see {@link https://api.jquery.com/prependTo/}
3231
3322
  */
3232
- prependTo(target: JQuery|any[]|Element|string): JQuery;
3323
+ prependTo(target: JQuery | any[] | Element | string): JQuery;
3233
3324
 
3234
3325
  /**
3235
3326
  * Remove the set of matched elements from the DOM.
@@ -3245,7 +3336,7 @@ interface JQuery {
3245
3336
  * @param target A selector string, jQuery object, DOM element, or array of elements indicating which element(s) to replace.
3246
3337
  * @see {@link https://api.jquery.com/replaceAll/}
3247
3338
  */
3248
- replaceAll(target: JQuery|any[]|Element|string): JQuery;
3339
+ replaceAll(target: JQuery | any[] | Element | string): JQuery;
3249
3340
 
3250
3341
  /**
3251
3342
  * 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 +3344,14 @@ interface JQuery {
3253
3344
  * @param newContent The content to insert. May be an HTML string, DOM element, array of DOM elements, or jQuery object.
3254
3345
  * @see {@link https://api.jquery.com/replaceWith/#replaceWith-newContent}
3255
3346
  */
3256
- replaceWith(newContent: JQuery|any[]|Element|Text|string): JQuery;
3347
+ replaceWith(newContent: JQuery | any[] | Element | Text | string): JQuery;
3257
3348
  /**
3258
3349
  * Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.
3259
3350
  *
3260
3351
  * @param func A function that returns content with which to replace the set of matched elements.
3261
3352
  * @see {@link https://api.jquery.com/replaceWith/#replaceWith-function}
3262
3353
  */
3263
- replaceWith(func: () => Element|JQuery): JQuery;
3354
+ replaceWith(func: () => Element | JQuery): JQuery;
3264
3355
 
3265
3356
  /**
3266
3357
  * Get the combined text contents of each element in the set of matched elements, including their descendants.
@@ -3273,7 +3364,7 @@ interface JQuery {
3273
3364
  * @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
3365
  * @see {@link https://api.jquery.com/text/#text-text}
3275
3366
  */
3276
- text(text: string|number|boolean): JQuery;
3367
+ text(text: string | number | boolean): JQuery;
3277
3368
  /**
3278
3369
  * Set the content of each element in the set of matched elements to the specified text.
3279
3370
  *
@@ -3301,14 +3392,14 @@ interface JQuery {
3301
3392
  * @param wrappingElement A selector, element, HTML string, or jQuery object specifying the structure to wrap around the matched elements.
3302
3393
  * @see {@link https://api.jquery.com/wrap/#wrap-wrappingElement}
3303
3394
  */
3304
- wrap(wrappingElement: JQuery|Element|string): JQuery;
3395
+ wrap(wrappingElement: JQuery | Element | string): JQuery;
3305
3396
  /**
3306
3397
  * Wrap an HTML structure around each element in the set of matched elements.
3307
3398
  *
3308
3399
  * @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
3400
  * @see {@link https://api.jquery.com/wrap/#wrap-function}
3310
3401
  */
3311
- wrap(func: (index: number) => string|JQuery): JQuery;
3402
+ wrap(func: (index: number) => string | JQuery): JQuery;
3312
3403
 
3313
3404
  /**
3314
3405
  * Wrap an HTML structure around all elements in the set of matched elements.
@@ -3316,7 +3407,7 @@ interface JQuery {
3316
3407
  * @param wrappingElement A selector, element, HTML string, or jQuery object specifying the structure to wrap around the matched elements.
3317
3408
  * @see {@link https://api.jquery.com/wrapAll/#wrapAll-wrappingElement}
3318
3409
  */
3319
- wrapAll(wrappingElement: JQuery|Element|string): JQuery;
3410
+ wrapAll(wrappingElement: JQuery | Element | string): JQuery;
3320
3411
  /**
3321
3412
  * Wrap an HTML structure around all elements in the set of matched elements.
3322
3413
  *
@@ -3331,7 +3422,7 @@ interface JQuery {
3331
3422
  * @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
3423
  * @see {@link https://api.jquery.com/wrapInner/#wrapInner-wrappingElement}
3333
3424
  */
3334
- wrapInner(wrappingElement: JQuery|Element|string): JQuery;
3425
+ wrapInner(wrappingElement: JQuery | Element | string): JQuery;
3335
3426
  /**
3336
3427
  * Wrap an HTML structure around the content of each element in the set of matched elements.
3337
3428
  *
@@ -3373,7 +3464,7 @@ interface JQuery {
3373
3464
  * @param selector A selector representing a jQuery collection in which to look for an element.
3374
3465
  * @see {@link https://api.jquery.com/index/#index-selector}
3375
3466
  */
3376
- index(selector: string|JQuery|Element): number;
3467
+ index(selector: string | JQuery | Element): number;
3377
3468
 
3378
3469
  /**
3379
3470
  * The number of elements in the jQuery object.
@@ -3634,7 +3725,7 @@ interface JQuery {
3634
3725
  * @param selector A string containing a selector expression, or an array of elements to match against the set.
3635
3726
  * @see {@link https://api.jquery.com/not/#not-selector}
3636
3727
  */
3637
- not(selector: string|any[]): JQuery;
3728
+ not(selector: string | any[]): JQuery;
3638
3729
  /**
3639
3730
  * Remove elements from the set of matched elements.
3640
3731
  *
@@ -3648,7 +3739,7 @@ interface JQuery {
3648
3739
  * @param elements One or more DOM elements to remove from the matched set.
3649
3740
  * @see {@link https://api.jquery.com/not/#not-selection}
3650
3741
  */
3651
- not(elements: Element|Element[]): JQuery;
3742
+ not(elements: Element | Element[]): JQuery;
3652
3743
  /**
3653
3744
  * Remove elements from the set of matched elements.
3654
3745
  *
@@ -3806,7 +3897,7 @@ interface JQuery {
3806
3897
  * @param object An object to merge onto the jQuery prototype.
3807
3898
  * @see {@link https://api.jquery.com/jQuery.fn.extend/#jQuery-fn-extend-object}
3808
3899
  */
3809
- extend(object: { [method: string]: (...args: any[]) => any; }): JQuery;
3900
+ extend(object: { [method: string]: (...args: any[]) => any }): JQuery;
3810
3901
  }
3811
3902
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
3812
3903
  declare module "jquery" {