@types/jquery 1.10.40 → 1.10.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
jquery v1.10/index.d.ts CHANGED
@@ -1,26 +1,3 @@
1
- // Type definitions for jQuery 1.10
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
  /**
@@ -630,7 +652,9 @@ interface JQueryKeyEventObject extends JQueryInputEventObject {
630
652
  keyCode: number;
631
653
  }
632
654
 
633
- interface JQueryEventObject extends BaseJQueryEventObject, JQueryInputEventObject, JQueryMouseEventObject, JQueryKeyEventObject{
655
+ interface JQueryEventObject
656
+ extends BaseJQueryEventObject, JQueryInputEventObject, JQueryMouseEventObject, JQueryKeyEventObject
657
+ {
634
658
  }
635
659
 
636
660
  /**
@@ -659,7 +683,7 @@ interface JQuerySupport {
659
683
  opacity?: boolean | undefined;
660
684
  optDisabled?: boolean | undefined;
661
685
  optSelected?: boolean | undefined;
662
- scriptEval? (): boolean;
686
+ scriptEval?(): boolean;
663
687
  style?: boolean | undefined;
664
688
  submitBubbles?: boolean | undefined;
665
689
  tbody?: boolean | undefined;
@@ -690,7 +714,7 @@ interface JQueryParam {
690
714
  */
691
715
  interface JQueryEventConstructor {
692
716
  (name: string, eventProperties?: any): JQueryEventObject;
693
- new (name: string, eventProperties?: any): JQueryEventObject;
717
+ new(name: string, eventProperties?: any): JQueryEventObject;
694
718
  }
695
719
 
696
720
  /**
@@ -770,11 +794,11 @@ interface JQueryAnimationOptions {
770
794
  }
771
795
 
772
796
  interface JQueryEasingFunction {
773
- ( percent: number ): number;
797
+ (percent: number): number;
774
798
  }
775
799
 
776
800
  interface JQueryEasingFunctions {
777
- [ name: string ]: JQueryEasingFunction;
801
+ [name: string]: JQueryEasingFunction;
778
802
  linear: JQueryEasingFunction;
779
803
  swing: JQueryEasingFunction;
780
804
  }
@@ -785,7 +809,6 @@ interface JQueryEasingFunctions {
785
809
  * @see {@link https://api.jquery.com/Types/#jQuery}
786
810
  */
787
811
  interface JQueryStatic {
788
-
789
812
  /**
790
813
  * Perform an asynchronous HTTP (Ajax) request.
791
814
  *
@@ -809,7 +832,10 @@ interface JQueryStatic {
809
832
  * @param handler A handler to set default values for future Ajax requests.
810
833
  * @see {@link https://api.jquery.com/jQuery.ajaxPrefilter/}
811
834
  */
812
- ajaxPrefilter(dataTypes: string, handler: (opts: any, originalOpts: JQueryAjaxSettings, jqXHR: JQueryXHR) => any): void;
835
+ ajaxPrefilter(
836
+ dataTypes: string,
837
+ handler: (opts: any, originalOpts: JQueryAjaxSettings, jqXHR: JQueryXHR) => any,
838
+ ): void;
813
839
  /**
814
840
  * Handle custom Ajax options or modify existing options before each request is sent and before they are processed by $.ajax().
815
841
  *
@@ -818,23 +844,26 @@ interface JQueryStatic {
818
844
  */
819
845
  ajaxPrefilter(handler: (opts: any, originalOpts: JQueryAjaxSettings, jqXHR: JQueryXHR) => any): void;
820
846
 
821
- /**
847
+ /**
822
848
  * Creates an object that handles the actual transmission of Ajax data.
823
849
  *
824
850
  * @param dataType A string identifying the data type to use.
825
851
  * @param handler A handler to return the new transport object to use with the data type provided in the first argument.
826
852
  * @see {@link https://api.jquery.com/jQuery.ajaxTransport/}
827
853
  */
828
- ajaxTransport(dataType: string, handler: (opts: any, originalOpts: JQueryAjaxSettings, jqXHR: JQueryXHR) => any): void;
854
+ ajaxTransport(
855
+ dataType: string,
856
+ handler: (opts: any, originalOpts: JQueryAjaxSettings, jqXHR: JQueryXHR) => any,
857
+ ): void;
829
858
 
830
859
  ajaxSettings: JQueryAjaxSettings;
831
860
 
832
- /**
833
- * Set default values for future Ajax requests. Its use is not recommended.
834
- *
835
- * @param options A set of key/value pairs that configure the default Ajax request. All options are optional.
836
- * @see {@link https://api.jquery.com/jQuery.ajaxSetup/}
837
- */
861
+ /**
862
+ * Set default values for future Ajax requests. Its use is not recommended.
863
+ *
864
+ * @param options A set of key/value pairs that configure the default Ajax request. All options are optional.
865
+ * @see {@link https://api.jquery.com/jQuery.ajaxSetup/}
866
+ */
838
867
  ajaxSetup(options: JQueryAjaxSettings): void;
839
868
 
840
869
  /**
@@ -855,14 +884,19 @@ interface JQueryStatic {
855
884
  * @param dataType The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html).
856
885
  * @see {@link https://api.jquery.com/jQuery.get/#jQuery-get-url-data-success-dataType}
857
886
  */
858
- get(url: string, data?: Object|string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any, dataType?: string): JQueryXHR;
887
+ get(
888
+ url: string,
889
+ data?: Object | string,
890
+ success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any,
891
+ dataType?: string,
892
+ ): JQueryXHR;
859
893
  /**
860
894
  * Load data from the server using a HTTP GET request.
861
895
  *
862
896
  * @param settings The JQueryAjaxSettings to be used for the request
863
897
  * @see {@link https://api.jquery.com/jQuery.get/#jQuery-get-settings}
864
898
  */
865
- get(settings : JQueryAjaxSettings): JQueryXHR;
899
+ get(settings: JQueryAjaxSettings): JQueryXHR;
866
900
  /**
867
901
  * Load JSON-encoded data from the server using a GET HTTP request.
868
902
  *
@@ -879,7 +913,11 @@ interface JQueryStatic {
879
913
  * @param success A callback function that is executed if the request succeeds.
880
914
  * @see {@link https://api.jquery.com/jQuery.getJSON/}
881
915
  */
882
- getJSON(url: string, data?: Object|string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any): JQueryXHR;
916
+ getJSON(
917
+ url: string,
918
+ data?: Object | string,
919
+ success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any,
920
+ ): JQueryXHR;
883
921
  /**
884
922
  * Load a JavaScript file from the server using a GET HTTP request, then execute it.
885
923
  *
@@ -914,14 +952,19 @@ interface JQueryStatic {
914
952
  * @param dataType The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).
915
953
  * @see {@link https://api.jquery.com/jQuery.post/#jQuery-post-url-data-success-dataType}
916
954
  */
917
- post(url: string, data?: Object|string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any, dataType?: string): JQueryXHR;
955
+ post(
956
+ url: string,
957
+ data?: Object | string,
958
+ success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any,
959
+ dataType?: string,
960
+ ): JQueryXHR;
918
961
  /**
919
962
  * Load data from the server using a HTTP POST request.
920
963
  *
921
964
  * @param settings The JQueryAjaxSettings to be used for the request
922
965
  * @see {@link https://api.jquery.com/jQuery.post/#jQuery-post-settings}
923
966
  */
924
- post(settings : JQueryAjaxSettings): JQueryXHR;
967
+ post(settings: JQueryAjaxSettings): JQueryXHR;
925
968
  /**
926
969
  * A multi-purpose callbacks list object that provides a powerful way to manage callback lists.
927
970
  *
@@ -945,7 +988,7 @@ interface JQueryStatic {
945
988
  * @param context A DOM Element, Document, or jQuery to use as context
946
989
  * @see {@link https://api.jquery.com/jQuery/#jQuery-selector-context}
947
990
  */
948
- (selector: string, context?: Element|JQuery): JQuery;
991
+ (selector: string, context?: Element | JQuery): JQuery;
949
992
 
950
993
  /**
951
994
  * Accepts a string containing a CSS selector which is then used to match a set of elements.
@@ -1025,13 +1068,13 @@ interface JQueryStatic {
1025
1068
  * @param deferreds One or more Deferred objects, or plain JavaScript objects.
1026
1069
  * @see {@link https://api.jquery.com/jQuery.when/}
1027
1070
  */
1028
- when<T>(...deferreds: Array<T|JQueryPromise<T>/* as JQueryDeferred<T> */>): JQueryPromise<T>;
1071
+ when<T>(...deferreds: Array<T | JQueryPromise<T> /* as JQueryDeferred<T> */>): JQueryPromise<T>;
1029
1072
 
1030
1073
  /**
1031
1074
  * Hook directly into jQuery to override how particular CSS properties are retrieved or set, normalize CSS property naming, or create custom properties.
1032
1075
  * @see {@link https://api.jquery.com/jQuery.cssHooks/}
1033
1076
  */
1034
- cssHooks: { [key: string]: any; };
1077
+ cssHooks: { [key: string]: any };
1035
1078
 
1036
1079
  /**
1037
1080
  * 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.
@@ -1139,7 +1182,7 @@ interface JQueryStatic {
1139
1182
  */
1140
1183
  interval: number;
1141
1184
  stop: () => void;
1142
- speeds: { slow: number; fast: number; };
1185
+ speeds: { slow: number; fast: number };
1143
1186
  /**
1144
1187
  * Globally disable all animations.
1145
1188
  * @see {@link https://api.jquery.com/jQuery.fx.off/}
@@ -1204,8 +1247,8 @@ interface JQueryStatic {
1204
1247
  */
1205
1248
  each<T>(
1206
1249
  collection: T[],
1207
- callback: (indexInArray: number, valueOfElement: T) => boolean | void
1208
- ): T[];
1250
+ callback: (indexInArray: number, valueOfElement: T) => boolean | void,
1251
+ ): T[];
1209
1252
 
1210
1253
  /**
1211
1254
  * 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.
@@ -1218,8 +1261,8 @@ interface JQueryStatic {
1218
1261
  each<T extends Object>(
1219
1262
  collection: T,
1220
1263
  // TODO: `(keyInObject: keyof T, valueOfElement: T[keyof T])`, when TypeScript 2.1 allowed in repository
1221
- callback: (keyInObject: string, valueOfElement: any) => boolean | void
1222
- ): T;
1264
+ callback: (keyInObject: string, valueOfElement: any) => boolean | void,
1265
+ ): T;
1223
1266
 
1224
1267
  /**
1225
1268
  * Merge the contents of two or more objects together into the first object.
@@ -1395,7 +1438,21 @@ interface JQueryStatic {
1395
1438
  * @param obj Object to get the internal JavaScript [[Class]] of.
1396
1439
  * @see {@link https://api.jquery.com/jQuery.type/}
1397
1440
  */
1398
- type(obj: any): "array" | "boolean" | "date" | "error" | "function" | "null" | "number" | "object" | "regexp" | "string" | "symbol" | "undefined";
1441
+ type(
1442
+ obj: any,
1443
+ ):
1444
+ | "array"
1445
+ | "boolean"
1446
+ | "date"
1447
+ | "error"
1448
+ | "function"
1449
+ | "null"
1450
+ | "number"
1451
+ | "object"
1452
+ | "regexp"
1453
+ | "string"
1454
+ | "symbol"
1455
+ | "undefined";
1399
1456
 
1400
1457
  /**
1401
1458
  * 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.
@@ -1445,7 +1502,14 @@ interface JQuery {
1445
1502
  * @param handler The function to be invoked.
1446
1503
  * @see {@link https://api.jquery.com/ajaxError/}
1447
1504
  */
1448
- ajaxError(handler: (event: JQueryEventObject, jqXHR: JQueryXHR, ajaxSettings: JQueryAjaxSettings, thrownError: any) => any): JQuery;
1505
+ ajaxError(
1506
+ handler: (
1507
+ event: JQueryEventObject,
1508
+ jqXHR: JQueryXHR,
1509
+ ajaxSettings: JQueryAjaxSettings,
1510
+ thrownError: any,
1511
+ ) => any,
1512
+ ): JQuery;
1449
1513
  /**
1450
1514
  * Attach a function to be executed before an Ajax request is sent. This is an Ajax Event.
1451
1515
  *
@@ -1473,7 +1537,9 @@ interface JQuery {
1473
1537
  * @param handler The function to be invoked.
1474
1538
  * @see {@link https://api.jquery.com/ajaxSuccess/}
1475
1539
  */
1476
- ajaxSuccess(handler: (event: JQueryEventObject, XMLHttpRequest: XMLHttpRequest, ajaxOptions: JQueryAjaxSettings) => any): JQuery;
1540
+ ajaxSuccess(
1541
+ handler: (event: JQueryEventObject, XMLHttpRequest: XMLHttpRequest, ajaxOptions: JQueryAjaxSettings) => any,
1542
+ ): JQuery;
1477
1543
 
1478
1544
  /**
1479
1545
  * Load data from the server and place the returned HTML into the matched element.
@@ -1483,7 +1549,11 @@ interface JQuery {
1483
1549
  * @param complete A callback function that is executed when the request completes.
1484
1550
  * @see {@link https://api.jquery.com/load/}
1485
1551
  */
1486
- load(url: string, data?: string|Object, complete?: (responseText: string, textStatus: string, XMLHttpRequest: XMLHttpRequest) => any): JQuery;
1552
+ load(
1553
+ url: string,
1554
+ data?: string | Object,
1555
+ complete?: (responseText: string, textStatus: string, XMLHttpRequest: XMLHttpRequest) => any,
1556
+ ): JQuery;
1487
1557
 
1488
1558
  /**
1489
1559
  * Encode a set of form elements as a string for submission.
@@ -1531,7 +1601,7 @@ interface JQuery {
1531
1601
  * @param value A value to set for the attribute. If this is `null`, the attribute will be deleted.
1532
1602
  * @see {@link https://api.jquery.com/attr/#attr-attributeName-value}
1533
1603
  */
1534
- attr(attributeName: string, value: string|number|null): JQuery;
1604
+ attr(attributeName: string, value: string | number | null): JQuery;
1535
1605
  /**
1536
1606
  * Set one or more attributes for the set of matched elements.
1537
1607
  *
@@ -1539,7 +1609,7 @@ interface JQuery {
1539
1609
  * @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.
1540
1610
  * @see {@link https://api.jquery.com/attr/#attr-attributeName-function}
1541
1611
  */
1542
- attr(attributeName: string, func: (index: number, attr: string) => string|number): JQuery;
1612
+ attr(attributeName: string, func: (index: number, attr: string) => string | number): JQuery;
1543
1613
  /**
1544
1614
  * Set one or more attributes for the set of matched elements.
1545
1615
  *
@@ -1590,7 +1660,7 @@ interface JQuery {
1590
1660
  * @param value A value to set for the property.
1591
1661
  * @see {@link https://api.jquery.com/prop/#prop-propertyName-value}
1592
1662
  */
1593
- prop(propertyName: string, value: string|number|boolean): JQuery;
1663
+ prop(propertyName: string, value: string | number | boolean): JQuery;
1594
1664
  /**
1595
1665
  * Set one or more properties for the set of matched elements.
1596
1666
  *
@@ -1673,7 +1743,7 @@ interface JQuery {
1673
1743
  * @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.
1674
1744
  * @see {@link https://api.jquery.com/val/#val-value}
1675
1745
  */
1676
- val(value: string|string[]|number): JQuery;
1746
+ val(value: string | string[] | number): JQuery;
1677
1747
  /**
1678
1748
  * Set the value of each element in the set of matched elements.
1679
1749
  *
@@ -1704,7 +1774,7 @@ interface JQuery {
1704
1774
  * @param value A value to set for the property.
1705
1775
  * @see {@link https://api.jquery.com/css/#css-propertyName-value}
1706
1776
  */
1707
- css(propertyName: string, value: string|number): JQuery;
1777
+ css(propertyName: string, value: string | number): JQuery;
1708
1778
  /**
1709
1779
  * Set one or more CSS properties for the set of matched elements.
1710
1780
  *
@@ -1712,7 +1782,7 @@ interface JQuery {
1712
1782
  * @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.
1713
1783
  * @see {@link https://api.jquery.com/css/#css-propertyName-function}
1714
1784
  */
1715
- css(propertyName: string, value: (index: number, value: string) => string|number): JQuery;
1785
+ css(propertyName: string, value: (index: number, value: string) => string | number): JQuery;
1716
1786
  /**
1717
1787
  * Set one or more CSS properties for the set of matched elements.
1718
1788
  *
@@ -1732,14 +1802,14 @@ interface JQuery {
1732
1802
  * @param value An integer representing the number of pixels, or an integer with an optional unit of measure appended (as a string).
1733
1803
  * @see {@link https://api.jquery.com/height/#height-value}
1734
1804
  */
1735
- height(value: number|string): JQuery;
1805
+ height(value: number | string): JQuery;
1736
1806
  /**
1737
1807
  * Set the CSS height of every matched element.
1738
1808
  *
1739
1809
  * @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.
1740
1810
  * @see {@link https://api.jquery.com/height/#height-function}
1741
1811
  */
1742
- height(func: (index: number, height: number) => number|string): JQuery;
1812
+ height(func: (index: number, height: number) => number | string): JQuery;
1743
1813
 
1744
1814
  /**
1745
1815
  * Get the current computed height for the first element in the set of matched elements, including padding but not border.
@@ -1753,7 +1823,7 @@ interface JQuery {
1753
1823
  * @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
1754
1824
  * @see {@link https://api.jquery.com/innerHeight/#innerHeight-value}
1755
1825
  */
1756
- innerHeight(value: number|string): JQuery;
1826
+ innerHeight(value: number | string): JQuery;
1757
1827
 
1758
1828
  /**
1759
1829
  * Get the current computed width for the first element in the set of matched elements, including padding but not border.
@@ -1767,7 +1837,7 @@ interface JQuery {
1767
1837
  * @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
1768
1838
  * @see {@link https://api.jquery.com/innerWidth/#innerWidth-value}
1769
1839
  */
1770
- innerWidth(value: number|string): JQuery;
1840
+ innerWidth(value: number | string): JQuery;
1771
1841
 
1772
1842
  /**
1773
1843
  * Get the current coordinates of the first element in the set of matched elements, relative to the document.
@@ -1803,7 +1873,7 @@ interface JQuery {
1803
1873
  * @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
1804
1874
  * @see {@link https://api.jquery.com/outerHeight/#outerHeight-value}
1805
1875
  */
1806
- outerHeight(value: number|string): JQuery;
1876
+ outerHeight(value: number | string): JQuery;
1807
1877
 
1808
1878
  /**
1809
1879
  * Get the current computed width for the first element in the set of matched elements, including padding and border.
@@ -1819,7 +1889,7 @@ interface JQuery {
1819
1889
  * @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
1820
1890
  * @see {@link https://api.jquery.com/outerWidth/#outerWidth-value}
1821
1891
  */
1822
- outerWidth(value: number|string): JQuery;
1892
+ outerWidth(value: number | string): JQuery;
1823
1893
 
1824
1894
  /**
1825
1895
  * Get the current coordinates of the first element in the set of matched elements, relative to the offset parent.
@@ -1864,14 +1934,14 @@ interface JQuery {
1864
1934
  * @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
1865
1935
  * @see {@link https://api.jquery.com/width/#width-value}
1866
1936
  */
1867
- width(value: number|string): JQuery;
1937
+ width(value: number | string): JQuery;
1868
1938
  /**
1869
1939
  * Set the CSS width of each element in the set of matched elements.
1870
1940
  *
1871
1941
  * @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.
1872
1942
  * @see {@link https://api.jquery.com/width/#width-function}
1873
1943
  */
1874
- width(func: (index: number, width: number) => number|string): JQuery;
1944
+ width(func: (index: number, width: number) => number | string): JQuery;
1875
1945
 
1876
1946
  /**
1877
1947
  * Remove from the queue all items that have not yet been run.
@@ -1902,7 +1972,7 @@ interface JQuery {
1902
1972
  * @param obj An object of key-value pairs of data to update.
1903
1973
  * @see {@link https://api.jquery.com/data/#data-obj}
1904
1974
  */
1905
- data(obj: { [key: string]: any; }): JQuery;
1975
+ data(obj: { [key: string]: any }): JQuery;
1906
1976
  /**
1907
1977
  * 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.
1908
1978
  * @see {@link https://api.jquery.com/data/#data}
@@ -1954,7 +2024,7 @@ interface JQuery {
1954
2024
  * @param complete A function to call once the animation is complete.
1955
2025
  * @see {@link https://api.jquery.com/animate/#animate-properties-duration-easing-complete}
1956
2026
  */
1957
- animate(properties: Object, duration?: string|number, complete?: Function): JQuery;
2027
+ animate(properties: Object, duration?: string | number, complete?: Function): JQuery;
1958
2028
  /**
1959
2029
  * Perform a custom animation of a set of CSS properties.
1960
2030
  *
@@ -1964,7 +2034,7 @@ interface JQuery {
1964
2034
  * @param complete A function to call once the animation is complete.
1965
2035
  * @see {@link https://api.jquery.com/animate/#animate-properties-duration-easing-complete}
1966
2036
  */
1967
- animate(properties: Object, duration?: string|number, easing?: string, complete?: Function): JQuery;
2037
+ animate(properties: Object, duration?: string | number, easing?: string, complete?: Function): JQuery;
1968
2038
  /**
1969
2039
  * Perform a custom animation of a set of CSS properties.
1970
2040
  *
@@ -1990,7 +2060,7 @@ interface JQuery {
1990
2060
  * @param complete A function to call once the animation is complete.
1991
2061
  * @see {@link https://api.jquery.com/fadeIn/#fadeIn-duration-complete}
1992
2062
  */
1993
- fadeIn(duration?: number|string, complete?: Function): JQuery;
2063
+ fadeIn(duration?: number | string, complete?: Function): JQuery;
1994
2064
  /**
1995
2065
  * Display the matched elements by fading them to opaque.
1996
2066
  *
@@ -1999,7 +2069,7 @@ interface JQuery {
1999
2069
  * @param complete A function to call once the animation is complete.
2000
2070
  * @see {@link https://api.jquery.com/fadeIn/#fadeIn-duration-easing-complete}
2001
2071
  */
2002
- fadeIn(duration?: number|string, easing?: string, complete?: Function): JQuery;
2072
+ fadeIn(duration?: number | string, easing?: string, complete?: Function): JQuery;
2003
2073
  /**
2004
2074
  * Display the matched elements by fading them to opaque.
2005
2075
  *
@@ -2015,7 +2085,7 @@ interface JQuery {
2015
2085
  * @param complete A function to call once the animation is complete.
2016
2086
  * @see {@link https://api.jquery.com/fadeOut/#fadeOut-duration-complete}
2017
2087
  */
2018
- fadeOut(duration?: number|string, complete?: Function): JQuery;
2088
+ fadeOut(duration?: number | string, complete?: Function): JQuery;
2019
2089
  /**
2020
2090
  * Hide the matched elements by fading them to transparent.
2021
2091
  *
@@ -2024,7 +2094,7 @@ interface JQuery {
2024
2094
  * @param complete A function to call once the animation is complete.
2025
2095
  * @see {@link https://api.jquery.com/fadeOut/#fadeOut-duration-easing-complete}
2026
2096
  */
2027
- fadeOut(duration?: number|string, easing?: string, complete?: Function): JQuery;
2097
+ fadeOut(duration?: number | string, easing?: string, complete?: Function): JQuery;
2028
2098
  /**
2029
2099
  * Hide the matched elements by fading them to transparent.
2030
2100
  *
@@ -2041,7 +2111,7 @@ interface JQuery {
2041
2111
  * @param complete A function to call once the animation is complete.
2042
2112
  * @see {@link https://api.jquery.com/fadeTo/#fadeTo-duration-opacity-complete}
2043
2113
  */
2044
- fadeTo(duration: string|number, opacity: number, complete?: Function): JQuery;
2114
+ fadeTo(duration: string | number, opacity: number, complete?: Function): JQuery;
2045
2115
  /**
2046
2116
  * Adjust the opacity of the matched elements.
2047
2117
  *
@@ -2051,7 +2121,7 @@ interface JQuery {
2051
2121
  * @param complete A function to call once the animation is complete.
2052
2122
  * @see {@link https://api.jquery.com/fadeTo/#fadeTo-duration-opacity-easing-complete}
2053
2123
  */
2054
- fadeTo(duration: string|number, opacity: number, easing?: string, complete?: Function): JQuery;
2124
+ fadeTo(duration: string | number, opacity: number, easing?: string, complete?: Function): JQuery;
2055
2125
 
2056
2126
  /**
2057
2127
  * Display or hide the matched elements by animating their opacity.
@@ -2060,7 +2130,7 @@ interface JQuery {
2060
2130
  * @param complete A function to call once the animation is complete.
2061
2131
  * @see {@link https://api.jquery.com/fadeToggle/#fadeToggle-duration-easing-complete}
2062
2132
  */
2063
- fadeToggle(duration?: number|string, complete?: Function): JQuery;
2133
+ fadeToggle(duration?: number | string, complete?: Function): JQuery;
2064
2134
  /**
2065
2135
  * Display or hide the matched elements by animating their opacity.
2066
2136
  *
@@ -2069,7 +2139,7 @@ interface JQuery {
2069
2139
  * @param complete A function to call once the animation is complete.
2070
2140
  * @see {@link https://api.jquery.com/fadeToggle/#fadeToggle-duration-easing-complete}
2071
2141
  */
2072
- fadeToggle(duration?: number|string, easing?: string, complete?: Function): JQuery;
2142
+ fadeToggle(duration?: number | string, easing?: string, complete?: Function): JQuery;
2073
2143
  /**
2074
2144
  * Display or hide the matched elements by animating their opacity.
2075
2145
  *
@@ -2093,7 +2163,7 @@ interface JQuery {
2093
2163
  * @param complete A function to call once the animation is complete.
2094
2164
  * @see {@link https://api.jquery.com/hide/#hide}
2095
2165
  */
2096
- hide(duration?: number|string, complete?: Function): JQuery;
2166
+ hide(duration?: number | string, complete?: Function): JQuery;
2097
2167
  /**
2098
2168
  * Hide the matched elements.
2099
2169
  *
@@ -2102,7 +2172,7 @@ interface JQuery {
2102
2172
  * @param complete A function to call once the animation is complete.
2103
2173
  * @see {@link https://api.jquery.com/hide/#hide-duration-easing-complete}
2104
2174
  */
2105
- hide(duration?: number|string, easing?: string, complete?: Function): JQuery;
2175
+ hide(duration?: number | string, easing?: string, complete?: Function): JQuery;
2106
2176
  /**
2107
2177
  * Hide the matched elements.
2108
2178
  *
@@ -2118,7 +2188,7 @@ interface JQuery {
2118
2188
  * @param complete A function to call once the animation is complete.
2119
2189
  * @see {@link https://api.jquery.com/show/#show}
2120
2190
  */
2121
- show(duration?: number|string, complete?: Function): JQuery;
2191
+ show(duration?: number | string, complete?: Function): JQuery;
2122
2192
  /**
2123
2193
  * Display the matched elements.
2124
2194
  *
@@ -2127,7 +2197,7 @@ interface JQuery {
2127
2197
  * @param complete A function to call once the animation is complete.
2128
2198
  * @see {@link https://api.jquery.com/show/#show-duration-easing-complete}
2129
2199
  */
2130
- show(duration?: number|string, easing?: string, complete?: Function): JQuery;
2200
+ show(duration?: number | string, easing?: string, complete?: Function): JQuery;
2131
2201
  /**
2132
2202
  * Display the matched elements.
2133
2203
  *
@@ -2143,7 +2213,7 @@ interface JQuery {
2143
2213
  * @param complete A function to call once the animation is complete.
2144
2214
  * @see {@link https://api.jquery.com/slideDown/#slideDown-duration-complete}
2145
2215
  */
2146
- slideDown(duration?: number|string, complete?: Function): JQuery;
2216
+ slideDown(duration?: number | string, complete?: Function): JQuery;
2147
2217
  /**
2148
2218
  * Display the matched elements with a sliding motion.
2149
2219
  *
@@ -2152,7 +2222,7 @@ interface JQuery {
2152
2222
  * @param complete A function to call once the animation is complete.
2153
2223
  * @see {@link https://api.jquery.com/slideDown/#slideDown-duration-easing-complete}
2154
2224
  */
2155
- slideDown(duration?: number|string, easing?: string, complete?: Function): JQuery;
2225
+ slideDown(duration?: number | string, easing?: string, complete?: Function): JQuery;
2156
2226
  /**
2157
2227
  * Display the matched elements with a sliding motion.
2158
2228
  *
@@ -2168,7 +2238,7 @@ interface JQuery {
2168
2238
  * @param complete A function to call once the animation is complete.
2169
2239
  * @see {@link https://api.jquery.com/slideToggle/#slideToggle-duration-complete}
2170
2240
  */
2171
- slideToggle(duration?: number|string, complete?: Function): JQuery;
2241
+ slideToggle(duration?: number | string, complete?: Function): JQuery;
2172
2242
  /**
2173
2243
  * Display or hide the matched elements with a sliding motion.
2174
2244
  *
@@ -2177,7 +2247,7 @@ interface JQuery {
2177
2247
  * @param complete A function to call once the animation is complete.
2178
2248
  * @see {@link https://api.jquery.com/slideToggle/#slideToggle-duration-easing-complete}
2179
2249
  */
2180
- slideToggle(duration?: number|string, easing?: string, complete?: Function): JQuery;
2250
+ slideToggle(duration?: number | string, easing?: string, complete?: Function): JQuery;
2181
2251
  /**
2182
2252
  * Display or hide the matched elements with a sliding motion.
2183
2253
  *
@@ -2193,7 +2263,7 @@ interface JQuery {
2193
2263
  * @param complete A function to call once the animation is complete.
2194
2264
  * @see {@link https://api.jquery.com/slideUp/#slideUp-duration-complete}
2195
2265
  */
2196
- slideUp(duration?: number|string, complete?: Function): JQuery;
2266
+ slideUp(duration?: number | string, complete?: Function): JQuery;
2197
2267
  /**
2198
2268
  * Hide the matched elements with a sliding motion.
2199
2269
  *
@@ -2202,7 +2272,7 @@ interface JQuery {
2202
2272
  * @param complete A function to call once the animation is complete.
2203
2273
  * @see {@link https://api.jquery.com/slideUp/#slideUp-duration-easing-complete}
2204
2274
  */
2205
- slideUp(duration?: number|string, easing?: string, complete?: Function): JQuery;
2275
+ slideUp(duration?: number | string, easing?: string, complete?: Function): JQuery;
2206
2276
  /**
2207
2277
  * Hide the matched elements with a sliding motion.
2208
2278
  *
@@ -2236,7 +2306,7 @@ interface JQuery {
2236
2306
  * @param complete A function to call once the animation is complete.
2237
2307
  * @see {@link https://api.jquery.com/toggle/#toggle-duration-complete}
2238
2308
  */
2239
- toggle(duration?: number|string, complete?: Function): JQuery;
2309
+ toggle(duration?: number | string, complete?: Function): JQuery;
2240
2310
  /**
2241
2311
  * Display or hide the matched elements.
2242
2312
  *
@@ -2245,7 +2315,7 @@ interface JQuery {
2245
2315
  * @param complete A function to call once the animation is complete.
2246
2316
  * @see {@link https://api.jquery.com/toggle/#toggle-duration-easing-complete}
2247
2317
  */
2248
- toggle(duration?: number|string, easing?: string, complete?: Function): JQuery;
2318
+ toggle(duration?: number | string, easing?: string, complete?: Function): JQuery;
2249
2319
  /**
2250
2320
  * Display or hide the matched elements.
2251
2321
  *
@@ -2417,7 +2487,12 @@ interface JQuery {
2417
2487
  * 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.
2418
2488
  * @see {@link https://api.jquery.com/delegate/#delegate-selector-eventType-eventData-handler}
2419
2489
  */
2420
- delegate(selector: any, eventType: string, eventData: any, handler: (eventObject: JQueryEventObject) => any): JQuery;
2490
+ delegate(
2491
+ selector: any,
2492
+ eventType: string,
2493
+ eventData: any,
2494
+ handler: (eventObject: JQueryEventObject) => any,
2495
+ ): JQuery;
2421
2496
 
2422
2497
  /**
2423
2498
  * Trigger the "focus" event on an element.
@@ -2489,7 +2564,10 @@ interface JQuery {
2489
2564
  * @param handlerOut A function to execute when the mouse pointer leaves the element.
2490
2565
  * @see {@link https://api.jquery.com/hover/#hover-handlerIn-handlerOut}
2491
2566
  */
2492
- hover(handlerIn: (eventObject: JQueryEventObject) => any, handlerOut: (eventObject: JQueryEventObject) => any): JQuery;
2567
+ hover(
2568
+ handlerIn: (eventObject: JQueryEventObject) => any,
2569
+ handlerOut: (eventObject: JQueryEventObject) => any,
2570
+ ): JQuery;
2493
2571
  /**
2494
2572
  * Bind a single handler to the matched elements, to be executed when the mouse pointer enters or leaves the elements.
2495
2573
  *
@@ -2761,7 +2839,7 @@ interface JQuery {
2761
2839
  * @param selector A selector which should match the one originally passed to .on() when attaching event handlers.
2762
2840
  * @see {@link https://api.jquery.com/off/#off-events-selector}
2763
2841
  */
2764
- off(events: { [key: string]: any; }, selector?: string): JQuery;
2842
+ off(events: { [key: string]: any }, selector?: string): JQuery;
2765
2843
 
2766
2844
  /**
2767
2845
  * Attach an event handler function for one or more events to the selected elements.
@@ -2787,8 +2865,8 @@ interface JQuery {
2787
2865
  * @param data Data to be passed to the handler in event.data when an event is triggered.
2788
2866
  * @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.
2789
2867
  * @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
2790
- */
2791
- on(events: string, data : any, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery;
2868
+ */
2869
+ on(events: string, data: any, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery;
2792
2870
  /**
2793
2871
  * Attach an event handler function for one or more events to the selected elements.
2794
2872
  *
@@ -2798,7 +2876,12 @@ interface JQuery {
2798
2876
  * @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.
2799
2877
  * @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
2800
2878
  */
2801
- on(events: string, selector: string, data: any, handler: (eventObject: JQueryEventObject, ...eventData: any[]) => any): JQuery;
2879
+ on(
2880
+ events: string,
2881
+ selector: string,
2882
+ data: any,
2883
+ handler: (eventObject: JQueryEventObject, ...eventData: any[]) => any,
2884
+ ): JQuery;
2802
2885
  /**
2803
2886
  * Attach an event handler function for one or more events to the selected elements.
2804
2887
  *
@@ -2807,7 +2890,11 @@ interface JQuery {
2807
2890
  * @param data Data to be passed to the handler in event.data when an event occurs.
2808
2891
  * @see {@link https://api.jquery.com/on/#on-events-selector-data}
2809
2892
  */
2810
- on(events: { [key: string]: (eventObject: JQueryEventObject, ...args: any[]) => any; }, selector?: string, data?: any): JQuery;
2893
+ on(
2894
+ events: { [key: string]: (eventObject: JQueryEventObject, ...args: any[]) => any },
2895
+ selector?: string,
2896
+ data?: any,
2897
+ ): JQuery;
2811
2898
  /**
2812
2899
  * Attach an event handler function for one or more events to the selected elements.
2813
2900
  *
@@ -2815,7 +2902,7 @@ interface JQuery {
2815
2902
  * @param data Data to be passed to the handler in event.data when an event occurs.
2816
2903
  * @see {@link https://api.jquery.com/on/#on-events-selector-data}
2817
2904
  */
2818
- on(events: { [key: string]: (eventObject: JQueryEventObject, ...args: any[]) => any; }, data?: any): JQuery;
2905
+ on(events: { [key: string]: (eventObject: JQueryEventObject, ...args: any[]) => any }, data?: any): JQuery;
2819
2906
 
2820
2907
  /**
2821
2908
  * Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
@@ -2863,7 +2950,7 @@ interface JQuery {
2863
2950
  * @param data Data to be passed to the handler in event.data when an event occurs.
2864
2951
  * @see {@link https://api.jquery.com/one/#one-events-selector-data}
2865
2952
  */
2866
- one(events: { [key: string]: any; }, selector?: string, data?: any): JQuery;
2953
+ one(events: { [key: string]: any }, selector?: string, data?: any): JQuery;
2867
2954
 
2868
2955
  /**
2869
2956
  * Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
@@ -2872,8 +2959,7 @@ interface JQuery {
2872
2959
  * @param data Data to be passed to the handler in event.data when an event occurs.
2873
2960
  * @see {@link https://api.jquery.com/one/#one-events-selector-data}
2874
2961
  */
2875
- one(events: { [key: string]: any; }, data?: any): JQuery;
2876
-
2962
+ one(events: { [key: string]: any }, data?: any): JQuery;
2877
2963
 
2878
2964
  /**
2879
2965
  * Specify a function to execute when the DOM is fully loaded.
@@ -2974,7 +3060,7 @@ interface JQuery {
2974
3060
  * @param extraParameters Additional parameters to pass along to the event handler.
2975
3061
  * @see {@link https://api.jquery.com/trigger/#trigger-eventType-extraParameters}
2976
3062
  */
2977
- trigger(eventType: string, extraParameters?: any[]|Object): JQuery;
3063
+ trigger(eventType: string, extraParameters?: any[] | Object): JQuery;
2978
3064
  /**
2979
3065
  * Execute all handlers and behaviors attached to the matched elements for the given event type.
2980
3066
  *
@@ -2982,7 +3068,7 @@ interface JQuery {
2982
3068
  * @param extraParameters Additional parameters to pass along to the event handler.
2983
3069
  * @see {@link https://api.jquery.com/trigger/#trigger-event-extraParameters}
2984
3070
  */
2985
- trigger(event: JQueryEventObject, extraParameters?: any[]|Object): JQuery;
3071
+ trigger(event: JQueryEventObject, extraParameters?: any[] | Object): JQuery;
2986
3072
 
2987
3073
  /**
2988
3074
  * Execute all handlers attached to an element for an event.
@@ -3120,14 +3206,14 @@ interface JQuery {
3120
3206
  * @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.
3121
3207
  * @see {@link https://api.jquery.com/after/#after-content-content}
3122
3208
  */
3123
- after(content1: JQuery|any[]|Element|DocumentFragment|Text|string, ...content2: any[]): JQuery;
3209
+ after(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): JQuery;
3124
3210
  /**
3125
3211
  * Insert content, specified by the parameter, after each element in the set of matched elements.
3126
3212
  *
3127
3213
  * @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.
3128
3214
  * @see {@link https://api.jquery.com/after/#after-function}
3129
3215
  */
3130
- after(func: (index: number, html: string) => string|Element|JQuery): JQuery;
3216
+ after(func: (index: number, html: string) => string | Element | JQuery): JQuery;
3131
3217
 
3132
3218
  /**
3133
3219
  * Insert content, specified by the parameter, to the end of each element in the set of matched elements.
@@ -3136,14 +3222,14 @@ interface JQuery {
3136
3222
  * @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.
3137
3223
  * @see {@link https://api.jquery.com/append/#append-content-content}
3138
3224
  */
3139
- append(content1: JQuery|any[]|Element|DocumentFragment|Text|string, ...content2: any[]): JQuery;
3225
+ append(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): JQuery;
3140
3226
  /**
3141
3227
  * Insert content, specified by the parameter, to the end of each element in the set of matched elements.
3142
3228
  *
3143
3229
  * @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.
3144
3230
  * @see {@link https://api.jquery.com/append/#append-function}
3145
3231
  */
3146
- append(func: (index: number, html: string) => string|Element|JQuery): JQuery;
3232
+ append(func: (index: number, html: string) => string | Element | JQuery): JQuery;
3147
3233
 
3148
3234
  /**
3149
3235
  * Insert every element in the set of matched elements to the end of the target.
@@ -3151,7 +3237,7 @@ interface JQuery {
3151
3237
  * @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.
3152
3238
  * @see {@link https://api.jquery.com/appendTo/}
3153
3239
  */
3154
- appendTo(target: JQuery|any[]|Element|string): JQuery;
3240
+ appendTo(target: JQuery | any[] | Element | string): JQuery;
3155
3241
 
3156
3242
  /**
3157
3243
  * Insert content, specified by the parameter, before each element in the set of matched elements.
@@ -3160,14 +3246,14 @@ interface JQuery {
3160
3246
  * @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.
3161
3247
  * @see {@link https://api.jquery.com/before/#before-content-content}
3162
3248
  */
3163
- before(content1: JQuery|any[]|Element|DocumentFragment|Text|string, ...content2: any[]): JQuery;
3249
+ before(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): JQuery;
3164
3250
  /**
3165
3251
  * Insert content, specified by the parameter, before each element in the set of matched elements.
3166
3252
  *
3167
3253
  * @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.
3168
3254
  * @see {@link https://api.jquery.com/before/#before-function}
3169
3255
  */
3170
- before(func: (index: number, html: string) => string|Element|JQuery): JQuery;
3256
+ before(func: (index: number, html: string) => string | Element | JQuery): JQuery;
3171
3257
 
3172
3258
  /**
3173
3259
  * Create a deep copy of the set of matched elements.
@@ -3198,7 +3284,7 @@ interface JQuery {
3198
3284
  * @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.
3199
3285
  * @see {@link https://api.jquery.com/insertAfter/}
3200
3286
  */
3201
- insertAfter(target: JQuery|any[]|Element|Text|string): JQuery;
3287
+ insertAfter(target: JQuery | any[] | Element | Text | string): JQuery;
3202
3288
 
3203
3289
  /**
3204
3290
  * Insert every element in the set of matched elements before the target.
@@ -3206,7 +3292,7 @@ interface JQuery {
3206
3292
  * @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.
3207
3293
  * @see {@link https://api.jquery.com/insertBefore/}
3208
3294
  */
3209
- insertBefore(target: JQuery|any[]|Element|Text|string): JQuery;
3295
+ insertBefore(target: JQuery | any[] | Element | Text | string): JQuery;
3210
3296
 
3211
3297
  /**
3212
3298
  * Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
@@ -3215,14 +3301,14 @@ interface JQuery {
3215
3301
  * @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.
3216
3302
  * @see {@link https://api.jquery.com/prepend/#prepend-content-content}
3217
3303
  */
3218
- prepend(content1: JQuery|any[]|Element|DocumentFragment|Text|string, ...content2: any[]): JQuery;
3304
+ prepend(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): JQuery;
3219
3305
  /**
3220
3306
  * Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
3221
3307
  *
3222
3308
  * @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.
3223
3309
  * @see {@link https://api.jquery.com/prepend/#prepend-function}
3224
3310
  */
3225
- prepend(func: (index: number, html: string) => string|Element|JQuery): JQuery;
3311
+ prepend(func: (index: number, html: string) => string | Element | JQuery): JQuery;
3226
3312
 
3227
3313
  /**
3228
3314
  * Insert every element in the set of matched elements to the beginning of the target.
@@ -3230,7 +3316,7 @@ interface JQuery {
3230
3316
  * @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.
3231
3317
  * @see {@link https://api.jquery.com/prependTo/}
3232
3318
  */
3233
- prependTo(target: JQuery|any[]|Element|string): JQuery;
3319
+ prependTo(target: JQuery | any[] | Element | string): JQuery;
3234
3320
 
3235
3321
  /**
3236
3322
  * Remove the set of matched elements from the DOM.
@@ -3246,7 +3332,7 @@ interface JQuery {
3246
3332
  * @param target A selector string, jQuery object, DOM element, or array of elements indicating which element(s) to replace.
3247
3333
  * @see {@link https://api.jquery.com/replaceAll/}
3248
3334
  */
3249
- replaceAll(target: JQuery|any[]|Element|string): JQuery;
3335
+ replaceAll(target: JQuery | any[] | Element | string): JQuery;
3250
3336
 
3251
3337
  /**
3252
3338
  * Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.
@@ -3254,14 +3340,14 @@ interface JQuery {
3254
3340
  * @param newContent The content to insert. May be an HTML string, DOM element, array of DOM elements, or jQuery object.
3255
3341
  * @see {@link https://api.jquery.com/replaceWith/#replaceWith-newContent}
3256
3342
  */
3257
- replaceWith(newContent: JQuery|any[]|Element|Text|string): JQuery;
3343
+ replaceWith(newContent: JQuery | any[] | Element | Text | string): JQuery;
3258
3344
  /**
3259
3345
  * Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.
3260
3346
  *
3261
3347
  * @param func A function that returns content with which to replace the set of matched elements.
3262
3348
  * @see {@link https://api.jquery.com/replaceWith/#replaceWith-function}
3263
3349
  */
3264
- replaceWith(func: () => Element|JQuery): JQuery;
3350
+ replaceWith(func: () => Element | JQuery): JQuery;
3265
3351
 
3266
3352
  /**
3267
3353
  * Get the combined text contents of each element in the set of matched elements, including their descendants.
@@ -3274,7 +3360,7 @@ interface JQuery {
3274
3360
  * @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.
3275
3361
  * @see {@link https://api.jquery.com/text/#text-text}
3276
3362
  */
3277
- text(text: string|number|boolean): JQuery;
3363
+ text(text: string | number | boolean): JQuery;
3278
3364
  /**
3279
3365
  * Set the content of each element in the set of matched elements to the specified text.
3280
3366
  *
@@ -3302,14 +3388,14 @@ interface JQuery {
3302
3388
  * @param wrappingElement A selector, element, HTML string, or jQuery object specifying the structure to wrap around the matched elements.
3303
3389
  * @see {@link https://api.jquery.com/wrap/#wrap-wrappingElement}
3304
3390
  */
3305
- wrap(wrappingElement: JQuery|Element|string): JQuery;
3391
+ wrap(wrappingElement: JQuery | Element | string): JQuery;
3306
3392
  /**
3307
3393
  * Wrap an HTML structure around each element in the set of matched elements.
3308
3394
  *
3309
3395
  * @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.
3310
3396
  * @see {@link https://api.jquery.com/wrap/#wrap-function}
3311
3397
  */
3312
- wrap(func: (index: number) => string|JQuery): JQuery;
3398
+ wrap(func: (index: number) => string | JQuery): JQuery;
3313
3399
 
3314
3400
  /**
3315
3401
  * Wrap an HTML structure around all elements in the set of matched elements.
@@ -3317,7 +3403,7 @@ interface JQuery {
3317
3403
  * @param wrappingElement A selector, element, HTML string, or jQuery object specifying the structure to wrap around the matched elements.
3318
3404
  * @see {@link https://api.jquery.com/wrapAll/#wrapAll-wrappingElement}
3319
3405
  */
3320
- wrapAll(wrappingElement: JQuery|Element|string): JQuery;
3406
+ wrapAll(wrappingElement: JQuery | Element | string): JQuery;
3321
3407
  /**
3322
3408
  * Wrap an HTML structure around all elements in the set of matched elements.
3323
3409
  *
@@ -3332,7 +3418,7 @@ interface JQuery {
3332
3418
  * @param wrappingElement An HTML snippet, selector expression, jQuery object, or DOM element specifying the structure to wrap around the content of the matched elements.
3333
3419
  * @see {@link https://api.jquery.com/wrapInner/#wrapInner-wrappingElement}
3334
3420
  */
3335
- wrapInner(wrappingElement: JQuery|Element|string): JQuery;
3421
+ wrapInner(wrappingElement: JQuery | Element | string): JQuery;
3336
3422
  /**
3337
3423
  * Wrap an HTML structure around the content of each element in the set of matched elements.
3338
3424
  *
@@ -3374,7 +3460,7 @@ interface JQuery {
3374
3460
  * @param selector A selector representing a jQuery collection in which to look for an element.
3375
3461
  * @see {@link https://api.jquery.com/index/#index-selector}
3376
3462
  */
3377
- index(selector: string|JQuery|Element): number;
3463
+ index(selector: string | JQuery | Element): number;
3378
3464
 
3379
3465
  /**
3380
3466
  * The number of elements in the jQuery object.
@@ -3662,7 +3748,7 @@ interface JQuery {
3662
3748
  * @param elements One or more DOM elements to remove from the matched set.
3663
3749
  * @see {@link https://api.jquery.com/not/#not-selection}
3664
3750
  */
3665
- not(elements: Element|Element[]): JQuery;
3751
+ not(elements: Element | Element[]): JQuery;
3666
3752
  /**
3667
3753
  * Remove elements from the set of matched elements.
3668
3754
  *
@@ -3820,7 +3906,7 @@ interface JQuery {
3820
3906
  * @param object An object to merge onto the jQuery prototype.
3821
3907
  * @see {@link https://api.jquery.com/jQuery.fn.extend/#jQuery-fn-extend-object}
3822
3908
  */
3823
- extend(object: { [method: string]: (...args: any[]) => any; }): JQuery;
3909
+ extend(object: { [method: string]: (...args: any[]) => any }): JQuery;
3824
3910
  }
3825
3911
  // eslint-disable-next-line @definitelytyped/no-declare-current-package
3826
3912
  declare module "jquery" {