@types/jquery 2.0.65 → 2.0.67
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/README.md +1 -1
- jquery v2.0/index.d.ts +234 -182
- jquery v2.0/package.json +3 -3
jquery v2.0/index.d.ts
CHANGED
|
@@ -13,11 +13,12 @@ See the Apache Version 2.0 License for specific language governing permissions
|
|
|
13
13
|
and limitations under the License.
|
|
14
14
|
***************************************************************************** */
|
|
15
15
|
|
|
16
|
+
type BoundFunction = (this: HTMLElement) => void;
|
|
16
17
|
/**
|
|
17
18
|
* Interface for the AJAX setting that will configure the AJAX request
|
|
18
19
|
* @see {@link https://api.jquery.com/jQuery.ajax/#jQuery-ajax-settings}
|
|
19
20
|
*/
|
|
20
|
-
interface
|
|
21
|
+
interface JQueryBaseSettings<Context = any> {
|
|
21
22
|
/**
|
|
22
23
|
* The content type sent in the request header that tells the server what kind of response it will accept in return. If the accepts setting needs modification, it is recommended to do so once in the $.ajaxSetup() method.
|
|
23
24
|
*/
|
|
@@ -29,7 +30,7 @@ interface JQueryAjaxSettings {
|
|
|
29
30
|
/**
|
|
30
31
|
* 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.
|
|
31
32
|
*/
|
|
32
|
-
beforeSend?(jqXHR: JQueryXHR
|
|
33
|
+
beforeSend?(jqXHR: JQueryXHR<Context>, settings: JQueryAjaxSettings<Context>): any;
|
|
33
34
|
/**
|
|
34
35
|
* 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.
|
|
35
36
|
*/
|
|
@@ -37,7 +38,7 @@ interface JQueryAjaxSettings {
|
|
|
37
38
|
/**
|
|
38
39
|
* 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.
|
|
39
40
|
*/
|
|
40
|
-
complete?(jqXHR: JQueryXHR
|
|
41
|
+
complete?(jqXHR: JQueryXHR<Context>, textStatus: string): any;
|
|
41
42
|
/**
|
|
42
43
|
* An object of string/regular-expression pairs that determine how jQuery will parse the response, given its content type. (version added: 1.5)
|
|
43
44
|
*/
|
|
@@ -48,10 +49,6 @@ interface JQueryAjaxSettings {
|
|
|
48
49
|
* 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.
|
|
49
50
|
*/
|
|
50
51
|
contentType?: any;
|
|
51
|
-
/**
|
|
52
|
-
* This object will be made the context of all Ajax-related callbacks. By default, the context is an object that represents the ajax settings used in the call ($.ajaxSettings merged with the settings passed to $.ajax).
|
|
53
|
-
*/
|
|
54
|
-
context?: any;
|
|
55
52
|
/**
|
|
56
53
|
* 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)
|
|
57
54
|
*/
|
|
@@ -75,7 +72,7 @@ interface JQueryAjaxSettings {
|
|
|
75
72
|
/**
|
|
76
73
|
* 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.
|
|
77
74
|
*/
|
|
78
|
-
error?(jqXHR: JQueryXHR
|
|
75
|
+
error?(jqXHR: JQueryXHR<Context>, textStatus: string, errorThrown: string): any;
|
|
79
76
|
/**
|
|
80
77
|
* 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.
|
|
81
78
|
*/
|
|
@@ -127,7 +124,7 @@ interface JQueryAjaxSettings {
|
|
|
127
124
|
/**
|
|
128
125
|
* 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.
|
|
129
126
|
*/
|
|
130
|
-
success?(data: any, textStatus: string, jqXHR: JQueryXHR): any;
|
|
127
|
+
success?(data: any, textStatus: string, jqXHR: JQueryXHR<Context>): any;
|
|
131
128
|
/**
|
|
132
129
|
* 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.
|
|
133
130
|
*/
|
|
@@ -158,11 +155,18 @@ interface JQueryAjaxSettings {
|
|
|
158
155
|
xhrFields?: { [key: string]: any } | undefined;
|
|
159
156
|
}
|
|
160
157
|
|
|
158
|
+
interface JQueryAjaxSettings<Context = JQueryBaseSettings> extends JQueryBaseSettings<Context> {
|
|
159
|
+
/**
|
|
160
|
+
* This object will be made the context of all Ajax-related callbacks. By default, the context is an object that represents the ajax settings used in the call ($.ajaxSettings merged with the settings passed to $.ajax).
|
|
161
|
+
*/
|
|
162
|
+
context?: Context;
|
|
163
|
+
}
|
|
164
|
+
|
|
161
165
|
/**
|
|
162
166
|
* Interface for the jqXHR object
|
|
163
167
|
* @see {@link https://api.jquery.com/jQuery.ajax/#jqXHR}
|
|
164
168
|
*/
|
|
165
|
-
interface JQueryXHR extends XMLHttpRequest, JQueryPromise<any> {
|
|
169
|
+
interface JQueryXHR<C = any> extends XMLHttpRequest, JQueryPromise<any, C> {
|
|
166
170
|
/**
|
|
167
171
|
* The .overrideMimeType() method may be used in the beforeSend() callback function, for example, to modify the response content-type header. As of jQuery 1.5.1, the jqXHR object also contains the overrideMimeType() method (it was available in jQuery 1.4.x, as well, but was temporarily removed in jQuery 1.5).
|
|
168
172
|
*/
|
|
@@ -177,9 +181,9 @@ interface JQueryXHR extends XMLHttpRequest, JQueryPromise<any> {
|
|
|
177
181
|
* 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.
|
|
178
182
|
*/
|
|
179
183
|
then<R>(
|
|
180
|
-
doneCallback: (data: any, textStatus: string, jqXHR: JQueryXHR) => R | JQueryPromise<R>,
|
|
181
|
-
failCallback?: (jqXHR: JQueryXHR
|
|
182
|
-
): JQueryPromise<R>;
|
|
184
|
+
doneCallback: (data: any, textStatus: string, jqXHR: JQueryXHR<C>) => R | JQueryPromise<R, C>,
|
|
185
|
+
failCallback?: (jqXHR: JQueryXHR<C>, textStatus: string, errorThrown: any) => void,
|
|
186
|
+
): JQueryPromise<R, C>;
|
|
183
187
|
/**
|
|
184
188
|
* Property containing the parsed response if the response content type is json
|
|
185
189
|
*/
|
|
@@ -187,7 +191,7 @@ interface JQueryXHR extends XMLHttpRequest, JQueryPromise<any> {
|
|
|
187
191
|
/**
|
|
188
192
|
* A function to be called if the request fails.
|
|
189
193
|
*/
|
|
190
|
-
error(xhr: JQueryXHR
|
|
194
|
+
error(xhr: JQueryXHR<C>, textStatus: string, errorThrown: string): void;
|
|
191
195
|
}
|
|
192
196
|
|
|
193
197
|
/**
|
|
@@ -290,7 +294,7 @@ interface JQueryCallback {
|
|
|
290
294
|
/**
|
|
291
295
|
* Allows jQuery Promises to interop with non-jQuery promises
|
|
292
296
|
*/
|
|
293
|
-
interface JQueryGenericPromise<T> {
|
|
297
|
+
interface JQueryGenericPromise<T, C = any> {
|
|
294
298
|
/**
|
|
295
299
|
* Add handlers to be called when the Deferred object is resolved, rejected, or still in progress.
|
|
296
300
|
*
|
|
@@ -299,10 +303,10 @@ interface JQueryGenericPromise<T> {
|
|
|
299
303
|
* @see {@link https://api.jquery.com/deferred.then/#deferred-then-doneFilter-failFilter-progressFilter}
|
|
300
304
|
*/
|
|
301
305
|
then<U>(
|
|
302
|
-
doneFilter: (value?: T, ...values: any[]) => U | JQueryPromise<U>,
|
|
306
|
+
doneFilter: (value?: T, ...values: any[]) => U | JQueryPromise<U, C>,
|
|
303
307
|
failFilter?: (...reasons: any[]) => any,
|
|
304
308
|
progressFilter?: (...progression: any[]) => any,
|
|
305
|
-
): JQueryPromise<U>;
|
|
309
|
+
): JQueryPromise<U, C>;
|
|
306
310
|
|
|
307
311
|
/**
|
|
308
312
|
* Add handlers to be called when the Deferred object is resolved, rejected, or still in progress.
|
|
@@ -315,28 +319,28 @@ interface JQueryGenericPromise<T> {
|
|
|
315
319
|
doneFilter: (value?: T, ...values: any[]) => void,
|
|
316
320
|
failFilter?: (...reasons: any[]) => any,
|
|
317
321
|
progressFilter?: (...progression: any[]) => any,
|
|
318
|
-
): JQueryPromise<void>;
|
|
322
|
+
): JQueryPromise<void, C>;
|
|
319
323
|
}
|
|
320
324
|
|
|
321
325
|
/**
|
|
322
326
|
* Interface for the JQuery promise/deferred callbacks
|
|
323
327
|
*/
|
|
324
|
-
interface JQueryPromiseCallback<T> {
|
|
325
|
-
(value?: T, ...args: any[]): void;
|
|
328
|
+
interface JQueryPromiseCallback<T, C = any> {
|
|
329
|
+
(this: C, value?: T, ...args: any[]): void;
|
|
326
330
|
}
|
|
327
331
|
|
|
328
|
-
interface JQueryPromiseOperator<T, U> {
|
|
332
|
+
interface JQueryPromiseOperator<T, U, C = any> {
|
|
329
333
|
(
|
|
330
|
-
callback1: JQueryPromiseCallback<T> | Array<JQueryPromiseCallback<T>>,
|
|
331
|
-
...callbacksN: Array<JQueryPromiseCallback<any> | Array<JQueryPromiseCallback<any>>>
|
|
332
|
-
): JQueryPromise<U>;
|
|
334
|
+
callback1: JQueryPromiseCallback<T, C> | Array<JQueryPromiseCallback<T, C>>,
|
|
335
|
+
...callbacksN: Array<JQueryPromiseCallback<any, C> | Array<JQueryPromiseCallback<any, C>>>
|
|
336
|
+
): JQueryPromise<U, C>;
|
|
333
337
|
}
|
|
334
338
|
|
|
335
339
|
/**
|
|
336
340
|
* Interface for the JQuery promise, part of callbacks
|
|
337
341
|
* @see {@link https://api.jquery.com/category/deferred-object/}
|
|
338
342
|
*/
|
|
339
|
-
interface JQueryPromise<T> extends JQueryGenericPromise<T> {
|
|
343
|
+
interface JQueryPromise<T, C = any> extends JQueryGenericPromise<T, C> {
|
|
340
344
|
/**
|
|
341
345
|
* Determine the current state of a Deferred object.
|
|
342
346
|
* @see {@link https://api.jquery.com/deferred.state/}
|
|
@@ -350,9 +354,9 @@ interface JQueryPromise<T> extends JQueryGenericPromise<T> {
|
|
|
350
354
|
* @see {@link https://api.jquery.com/deferred.always/}
|
|
351
355
|
*/
|
|
352
356
|
always(
|
|
353
|
-
alwaysCallback1?: JQueryPromiseCallback<any> | Array<JQueryPromiseCallback<any>>,
|
|
357
|
+
alwaysCallback1?: JQueryPromiseCallback<any, C> | Array<JQueryPromiseCallback<any, C>>,
|
|
354
358
|
...alwaysCallbackN: Array<JQueryPromiseCallback<any> | Array<JQueryPromiseCallback<any>>>
|
|
355
|
-
): JQueryPromise<T>;
|
|
359
|
+
): JQueryPromise<T, C>;
|
|
356
360
|
/**
|
|
357
361
|
* Add handlers to be called when the Deferred object is resolved.
|
|
358
362
|
*
|
|
@@ -361,9 +365,9 @@ interface JQueryPromise<T> extends JQueryGenericPromise<T> {
|
|
|
361
365
|
* @see {@link https://api.jquery.com/deferred.done/}
|
|
362
366
|
*/
|
|
363
367
|
done(
|
|
364
|
-
doneCallback1?: JQueryPromiseCallback<T> | Array<JQueryPromiseCallback<T>>,
|
|
365
|
-
...doneCallbackN: Array<JQueryPromiseCallback<T> | Array<JQueryPromiseCallback<T>>>
|
|
366
|
-
): JQueryPromise<T>;
|
|
368
|
+
doneCallback1?: JQueryPromiseCallback<T, C> | Array<JQueryPromiseCallback<T, C>>,
|
|
369
|
+
...doneCallbackN: Array<JQueryPromiseCallback<T, C> | Array<JQueryPromiseCallback<T, C>>>
|
|
370
|
+
): JQueryPromise<T, C>;
|
|
367
371
|
/**
|
|
368
372
|
* Add handlers to be called when the Deferred object is rejected.
|
|
369
373
|
*
|
|
@@ -372,9 +376,9 @@ interface JQueryPromise<T> extends JQueryGenericPromise<T> {
|
|
|
372
376
|
* @see {@link https://api.jquery.com/deferred.fail/}
|
|
373
377
|
*/
|
|
374
378
|
fail(
|
|
375
|
-
failCallback1?: JQueryPromiseCallback<any> | Array<JQueryPromiseCallback<any>>,
|
|
376
|
-
...failCallbackN: Array<JQueryPromiseCallback<any> | Array<JQueryPromiseCallback<any>>>
|
|
377
|
-
): JQueryPromise<T>;
|
|
379
|
+
failCallback1?: JQueryPromiseCallback<any, C> | Array<JQueryPromiseCallback<any, C>>,
|
|
380
|
+
...failCallbackN: Array<JQueryPromiseCallback<any, C> | Array<JQueryPromiseCallback<any, C>>>
|
|
381
|
+
): JQueryPromise<T, C>;
|
|
378
382
|
/**
|
|
379
383
|
* Add handlers to be called when the Deferred object generates progress notifications.
|
|
380
384
|
*
|
|
@@ -383,16 +387,16 @@ interface JQueryPromise<T> extends JQueryGenericPromise<T> {
|
|
|
383
387
|
* @see {@link https://api.jquery.com/deferred.progress/}
|
|
384
388
|
*/
|
|
385
389
|
progress(
|
|
386
|
-
progressCallback1?: JQueryPromiseCallback<any> | Array<JQueryPromiseCallback<any>>,
|
|
387
|
-
...progressCallbackN: Array<JQueryPromiseCallback<any> | Array<JQueryPromiseCallback<any>>>
|
|
388
|
-
): JQueryPromise<T>;
|
|
390
|
+
progressCallback1?: JQueryPromiseCallback<any, C> | Array<JQueryPromiseCallback<any, C>>,
|
|
391
|
+
...progressCallbackN: Array<JQueryPromiseCallback<any, C> | Array<JQueryPromiseCallback<any, C>>>
|
|
392
|
+
): JQueryPromise<T, C>;
|
|
389
393
|
|
|
390
394
|
// Deprecated - given no typings
|
|
391
395
|
pipe(
|
|
392
396
|
doneFilter?: (x: any) => any,
|
|
393
397
|
failFilter?: (x: any) => any,
|
|
394
398
|
progressFilter?: (x: any) => any,
|
|
395
|
-
): JQueryPromise<any>;
|
|
399
|
+
): JQueryPromise<any, C>;
|
|
396
400
|
|
|
397
401
|
/**
|
|
398
402
|
* Return a Deferred's Promise object.
|
|
@@ -400,14 +404,14 @@ interface JQueryPromise<T> extends JQueryGenericPromise<T> {
|
|
|
400
404
|
* @param target Object onto which the promise methods have to be attached
|
|
401
405
|
* @see {@link https://api.jquery.com/deferred.promise/}
|
|
402
406
|
*/
|
|
403
|
-
promise(target?: any): JQueryPromise<T>;
|
|
407
|
+
promise(target?: any): JQueryPromise<T, C>;
|
|
404
408
|
}
|
|
405
409
|
|
|
406
410
|
/**
|
|
407
411
|
* Interface for the JQuery deferred, part of callbacks
|
|
408
412
|
* @see {@link https://api.jquery.com/category/deferred-object/}
|
|
409
413
|
*/
|
|
410
|
-
interface JQueryDeferred<T> extends JQueryGenericPromise<T> {
|
|
414
|
+
interface JQueryDeferred<T, C = any> extends JQueryGenericPromise<T, C> {
|
|
411
415
|
/**
|
|
412
416
|
* Determine the current state of a Deferred object.
|
|
413
417
|
* @see {@link https://api.jquery.com/deferred.state/}
|
|
@@ -421,9 +425,9 @@ interface JQueryDeferred<T> extends JQueryGenericPromise<T> {
|
|
|
421
425
|
* @see {@link https://api.jquery.com/deferred.always/}
|
|
422
426
|
*/
|
|
423
427
|
always(
|
|
424
|
-
alwaysCallback1?: JQueryPromiseCallback<any> | Array<JQueryPromiseCallback<any>>,
|
|
425
|
-
...alwaysCallbackN: Array<JQueryPromiseCallback<any> | Array<JQueryPromiseCallback<any>>>
|
|
426
|
-
): JQueryDeferred<T>;
|
|
428
|
+
alwaysCallback1?: JQueryPromiseCallback<any, C> | Array<JQueryPromiseCallback<any, C>>,
|
|
429
|
+
...alwaysCallbackN: Array<JQueryPromiseCallback<any, C> | Array<JQueryPromiseCallback<any, C>>>
|
|
430
|
+
): JQueryDeferred<T, C>;
|
|
427
431
|
/**
|
|
428
432
|
* Add handlers to be called when the Deferred object is resolved.
|
|
429
433
|
*
|
|
@@ -432,9 +436,9 @@ interface JQueryDeferred<T> extends JQueryGenericPromise<T> {
|
|
|
432
436
|
* @see {@link https://api.jquery.com/deferred.done/}
|
|
433
437
|
*/
|
|
434
438
|
done(
|
|
435
|
-
doneCallback1?: JQueryPromiseCallback<T> | Array<JQueryPromiseCallback<T>>,
|
|
436
|
-
...doneCallbackN: Array<JQueryPromiseCallback<T> | Array<JQueryPromiseCallback<T>>>
|
|
437
|
-
): JQueryDeferred<T>;
|
|
439
|
+
doneCallback1?: JQueryPromiseCallback<T, C> | Array<JQueryPromiseCallback<T, C>>,
|
|
440
|
+
...doneCallbackN: Array<JQueryPromiseCallback<T, C> | Array<JQueryPromiseCallback<T, C>>>
|
|
441
|
+
): JQueryDeferred<T, C>;
|
|
438
442
|
/**
|
|
439
443
|
* Add handlers to be called when the Deferred object is rejected.
|
|
440
444
|
*
|
|
@@ -443,9 +447,9 @@ interface JQueryDeferred<T> extends JQueryGenericPromise<T> {
|
|
|
443
447
|
* @see {@link https://api.jquery.com/deferred.fail/}
|
|
444
448
|
*/
|
|
445
449
|
fail(
|
|
446
|
-
failCallback1?: JQueryPromiseCallback<any> | Array<JQueryPromiseCallback<any>>,
|
|
447
|
-
...failCallbackN: Array<JQueryPromiseCallback<any> | Array<JQueryPromiseCallback<any>>>
|
|
448
|
-
): JQueryDeferred<T>;
|
|
450
|
+
failCallback1?: JQueryPromiseCallback<any, C> | Array<JQueryPromiseCallback<any, C>>,
|
|
451
|
+
...failCallbackN: Array<JQueryPromiseCallback<any, C> | Array<JQueryPromiseCallback<any, C>>>
|
|
452
|
+
): JQueryDeferred<T, C>;
|
|
449
453
|
/**
|
|
450
454
|
* Add handlers to be called when the Deferred object generates progress notifications.
|
|
451
455
|
*
|
|
@@ -454,9 +458,9 @@ interface JQueryDeferred<T> extends JQueryGenericPromise<T> {
|
|
|
454
458
|
* @see {@link https://api.jquery.com/deferred.progress/}
|
|
455
459
|
*/
|
|
456
460
|
progress(
|
|
457
|
-
progressCallback1?: JQueryPromiseCallback<any> | Array<JQueryPromiseCallback<any>>,
|
|
458
|
-
...progressCallbackN: Array<JQueryPromiseCallback<any> | Array<JQueryPromiseCallback<any>>>
|
|
459
|
-
): JQueryDeferred<T>;
|
|
461
|
+
progressCallback1?: JQueryPromiseCallback<any, C> | Array<JQueryPromiseCallback<any, C>>,
|
|
462
|
+
...progressCallbackN: Array<JQueryPromiseCallback<any, C> | Array<JQueryPromiseCallback<any, C>>>
|
|
463
|
+
): JQueryDeferred<T, C>;
|
|
460
464
|
|
|
461
465
|
/**
|
|
462
466
|
* Call the progressCallbacks on a Deferred object with the given args.
|
|
@@ -464,7 +468,7 @@ interface JQueryDeferred<T> extends JQueryGenericPromise<T> {
|
|
|
464
468
|
* @param args Optional arguments that are passed to the progressCallbacks.
|
|
465
469
|
* @see {@link https://api.jquery.com/deferred.notify/}
|
|
466
470
|
*/
|
|
467
|
-
notify(value?: any, ...args: any[]): JQueryDeferred<T>;
|
|
471
|
+
notify(value?: any, ...args: any[]): JQueryDeferred<T, C>;
|
|
468
472
|
|
|
469
473
|
/**
|
|
470
474
|
* Call the progressCallbacks on a Deferred object with the given context and args.
|
|
@@ -473,7 +477,7 @@ interface JQueryDeferred<T> extends JQueryGenericPromise<T> {
|
|
|
473
477
|
* @param args Optional arguments that are passed to the progressCallbacks.
|
|
474
478
|
* @see {@link https://api.jquery.com/deferred.notifyWith/}
|
|
475
479
|
*/
|
|
476
|
-
notifyWith(context:
|
|
480
|
+
notifyWith<Context = any>(context: Context, args?: any[]): JQueryDeferred<T, Context>;
|
|
477
481
|
|
|
478
482
|
/**
|
|
479
483
|
* Reject a Deferred object and call any failCallbacks with the given args.
|
|
@@ -481,7 +485,7 @@ interface JQueryDeferred<T> extends JQueryGenericPromise<T> {
|
|
|
481
485
|
* @param args Optional arguments that are passed to the failCallbacks.
|
|
482
486
|
* @see {@link https://api.jquery.com/deferred.reject/}
|
|
483
487
|
*/
|
|
484
|
-
reject(value?: any, ...args: any[]): JQueryDeferred<T>;
|
|
488
|
+
reject(value?: any, ...args: any[]): JQueryDeferred<T, C>;
|
|
485
489
|
/**
|
|
486
490
|
* Reject a Deferred object and call any failCallbacks with the given context and args.
|
|
487
491
|
*
|
|
@@ -489,7 +493,7 @@ interface JQueryDeferred<T> extends JQueryGenericPromise<T> {
|
|
|
489
493
|
* @param args An optional array of arguments that are passed to the failCallbacks.
|
|
490
494
|
* @see {@link https://api.jquery.com/deferred.rejectWith/}
|
|
491
495
|
*/
|
|
492
|
-
rejectWith(context:
|
|
496
|
+
rejectWith<Context = any>(context: Context, args?: any[]): JQueryDeferred<T, Context>;
|
|
493
497
|
|
|
494
498
|
/**
|
|
495
499
|
* Resolve a Deferred object and call any doneCallbacks with the given args.
|
|
@@ -498,7 +502,7 @@ interface JQueryDeferred<T> extends JQueryGenericPromise<T> {
|
|
|
498
502
|
* @param args Optional subsequent arguments that are passed to the doneCallbacks.
|
|
499
503
|
* @see {@link https://api.jquery.com/deferred.resolve/}
|
|
500
504
|
*/
|
|
501
|
-
resolve(value?: T, ...args: any[]): JQueryDeferred<T>;
|
|
505
|
+
resolve(value?: T, ...args: any[]): JQueryDeferred<T, C>;
|
|
502
506
|
|
|
503
507
|
/**
|
|
504
508
|
* Resolve a Deferred object and call any doneCallbacks with the given context and args.
|
|
@@ -507,7 +511,7 @@ interface JQueryDeferred<T> extends JQueryGenericPromise<T> {
|
|
|
507
511
|
* @param args An optional array of arguments that are passed to the doneCallbacks.
|
|
508
512
|
* @see {@link https://api.jquery.com/deferred.resolveWith/}
|
|
509
513
|
*/
|
|
510
|
-
resolveWith(context:
|
|
514
|
+
resolveWith<Context = any>(context: Context, args?: T[]): JQueryDeferred<T, Context>;
|
|
511
515
|
|
|
512
516
|
/**
|
|
513
517
|
* Return a Deferred's Promise object.
|
|
@@ -515,14 +519,14 @@ interface JQueryDeferred<T> extends JQueryGenericPromise<T> {
|
|
|
515
519
|
* @param target Object onto which the promise methods have to be attached
|
|
516
520
|
* @see {@link https://api.jquery.com/deferred.promise/}
|
|
517
521
|
*/
|
|
518
|
-
promise(target?: any): JQueryPromise<T>;
|
|
522
|
+
promise(target?: any): JQueryPromise<T, C>;
|
|
519
523
|
|
|
520
524
|
// Deprecated - given no typings
|
|
521
525
|
pipe(
|
|
522
526
|
doneFilter?: (x: any) => any,
|
|
523
527
|
failFilter?: (x: any) => any,
|
|
524
528
|
progressFilter?: (x: any) => any,
|
|
525
|
-
): JQueryPromise<any>;
|
|
529
|
+
): JQueryPromise<any, C>;
|
|
526
530
|
}
|
|
527
531
|
|
|
528
532
|
/**
|
|
@@ -829,7 +833,7 @@ interface JQueryStatic {
|
|
|
829
833
|
* @param settings A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with $.ajaxSetup().
|
|
830
834
|
* @see {@link https://api.jquery.com/jQuery.ajax/#jQuery-ajax-settings}
|
|
831
835
|
*/
|
|
832
|
-
ajax(settings: JQueryAjaxSettings): JQueryXHR
|
|
836
|
+
ajax<C>(settings: JQueryAjaxSettings<C>): JQueryXHR<C>;
|
|
833
837
|
/**
|
|
834
838
|
* Perform an asynchronous HTTP (Ajax) request.
|
|
835
839
|
*
|
|
@@ -837,7 +841,7 @@ interface JQueryStatic {
|
|
|
837
841
|
* @param settings A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with $.ajaxSetup().
|
|
838
842
|
* @see {@link https://api.jquery.com/jQuery.ajax/#jQuery-ajax-url-settings}
|
|
839
843
|
*/
|
|
840
|
-
ajax(url: string, settings?: JQueryAjaxSettings): JQueryXHR
|
|
844
|
+
ajax<C>(url: string, settings?: JQueryAjaxSettings<C>): JQueryXHR<C>;
|
|
841
845
|
|
|
842
846
|
/**
|
|
843
847
|
* Handle custom Ajax options or modify existing options before each request is sent and before they are processed by $.ajax().
|
|
@@ -910,7 +914,7 @@ interface JQueryStatic {
|
|
|
910
914
|
* @param settings The JQueryAjaxSettings to be used for the request
|
|
911
915
|
* @see {@link https://api.jquery.com/jQuery.get/#jQuery-get-settings}
|
|
912
916
|
*/
|
|
913
|
-
get(settings: JQueryAjaxSettings): JQueryXHR
|
|
917
|
+
get<C>(settings: JQueryAjaxSettings<C>): JQueryXHR<C>;
|
|
914
918
|
/**
|
|
915
919
|
* Load JSON-encoded data from the server using a GET HTTP request.
|
|
916
920
|
*
|
|
@@ -978,7 +982,7 @@ interface JQueryStatic {
|
|
|
978
982
|
* @param settings The JQueryAjaxSettings to be used for the request
|
|
979
983
|
* @see {@link https://api.jquery.com/jQuery.post/#jQuery-post-settings}
|
|
980
984
|
*/
|
|
981
|
-
post(settings: JQueryAjaxSettings): JQueryXHR
|
|
985
|
+
post<C>(settings: JQueryAjaxSettings<C>): JQueryXHR<C>;
|
|
982
986
|
/**
|
|
983
987
|
* A multi-purpose callbacks list object that provides a powerful way to manage callback lists.
|
|
984
988
|
*
|
|
@@ -1154,7 +1158,7 @@ interface JQueryStatic {
|
|
|
1154
1158
|
* @param newQueue An array of functions to replace the current queue contents.
|
|
1155
1159
|
* @see {@link https://api.jquery.com/jQuery.queue/#jQuery-queue-element-queueName-newQueue}
|
|
1156
1160
|
*/
|
|
1157
|
-
queue(element: Element, queueName: string, newQueue:
|
|
1161
|
+
queue(element: Element, queueName: string, newQueue: BoundFunction[]): JQuery;
|
|
1158
1162
|
/**
|
|
1159
1163
|
* Manipulate the queue of functions to be executed on the matched element.
|
|
1160
1164
|
*
|
|
@@ -1163,7 +1167,7 @@ interface JQueryStatic {
|
|
|
1163
1167
|
* @param callback The new function to add to the queue.
|
|
1164
1168
|
* @see {@link https://api.jquery.com/jQuery.queue/#jQuery-queue-element-queueName-callback}
|
|
1165
1169
|
*/
|
|
1166
|
-
queue(element: Element, queueName: string, callback:
|
|
1170
|
+
queue(element: Element, queueName: string, callback: BoundFunction): JQuery;
|
|
1167
1171
|
|
|
1168
1172
|
/**
|
|
1169
1173
|
* Remove a previously-stored piece of data.
|
|
@@ -1232,7 +1236,7 @@ interface JQueryStatic {
|
|
|
1232
1236
|
* @param message The message to send out.
|
|
1233
1237
|
* @see {@link https://api.jquery.com/jQuery.error/}
|
|
1234
1238
|
*/
|
|
1235
|
-
error(message: any):
|
|
1239
|
+
error(message: any): any;
|
|
1236
1240
|
|
|
1237
1241
|
expr: any;
|
|
1238
1242
|
readonly fn: JQuery;
|
|
@@ -1261,7 +1265,7 @@ interface JQueryStatic {
|
|
|
1261
1265
|
*/
|
|
1262
1266
|
each<T>(
|
|
1263
1267
|
collection: T[],
|
|
1264
|
-
callback: (indexInArray: number, valueOfElement: T) => boolean |
|
|
1268
|
+
callback: (this: T, indexInArray: number, valueOfElement: T) => boolean | undefined,
|
|
1265
1269
|
): T[];
|
|
1266
1270
|
|
|
1267
1271
|
/**
|
|
@@ -1275,6 +1279,7 @@ interface JQueryStatic {
|
|
|
1275
1279
|
each<T extends Object>(
|
|
1276
1280
|
collection: T,
|
|
1277
1281
|
// TODO: `(keyInObject: keyof T, valueOfElement: T[keyof T])`, when TypeScript 2.1 allowed in repository
|
|
1282
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
1278
1283
|
callback: (keyInObject: string, valueOfElement: any) => boolean | void,
|
|
1279
1284
|
): T;
|
|
1280
1285
|
|
|
@@ -1499,7 +1504,9 @@ interface JQuery {
|
|
|
1499
1504
|
* @param handler The function to be invoked.
|
|
1500
1505
|
* @see {@link https://api.jquery.com/ajaxComplete/}
|
|
1501
1506
|
*/
|
|
1502
|
-
ajaxComplete(
|
|
1507
|
+
ajaxComplete(
|
|
1508
|
+
handler: (this: HTMLElement, event: JQueryEventObject, XMLHttpRequest: XMLHttpRequest, ajaxOptions: any) => any,
|
|
1509
|
+
): JQuery;
|
|
1503
1510
|
/**
|
|
1504
1511
|
* Register a handler to be called when Ajax requests complete with an error. This is an Ajax Event.
|
|
1505
1512
|
*
|
|
@@ -1508,6 +1515,7 @@ interface JQuery {
|
|
|
1508
1515
|
*/
|
|
1509
1516
|
ajaxError(
|
|
1510
1517
|
handler: (
|
|
1518
|
+
this: HTMLElement,
|
|
1511
1519
|
event: JQueryEventObject,
|
|
1512
1520
|
jqXHR: JQueryXHR,
|
|
1513
1521
|
ajaxSettings: JQueryAjaxSettings,
|
|
@@ -1520,21 +1528,28 @@ interface JQuery {
|
|
|
1520
1528
|
* @param handler The function to be invoked.
|
|
1521
1529
|
* @see {@link https://api.jquery.com/ajaxSend/}
|
|
1522
1530
|
*/
|
|
1523
|
-
ajaxSend(
|
|
1531
|
+
ajaxSend(
|
|
1532
|
+
handler: (
|
|
1533
|
+
this: HTMLElement,
|
|
1534
|
+
event: JQueryEventObject,
|
|
1535
|
+
jqXHR: JQueryXHR,
|
|
1536
|
+
ajaxOptions: JQueryAjaxSettings,
|
|
1537
|
+
) => any,
|
|
1538
|
+
): JQuery;
|
|
1524
1539
|
/**
|
|
1525
1540
|
* Register a handler to be called when the first Ajax request begins. This is an Ajax Event.
|
|
1526
1541
|
*
|
|
1527
1542
|
* @param handler The function to be invoked.
|
|
1528
1543
|
* @see {@link https://api.jquery.com/ajaxStart/}
|
|
1529
1544
|
*/
|
|
1530
|
-
ajaxStart(handler: () => any): JQuery;
|
|
1545
|
+
ajaxStart(handler: (this: HTMLElement) => any): JQuery;
|
|
1531
1546
|
/**
|
|
1532
1547
|
* Register a handler to be called when all Ajax requests have completed. This is an Ajax Event.
|
|
1533
1548
|
*
|
|
1534
1549
|
* @param handler The function to be invoked.
|
|
1535
1550
|
* @see {@link https://api.jquery.com/ajaxStop/}
|
|
1536
1551
|
*/
|
|
1537
|
-
ajaxStop(handler: () => any): JQuery;
|
|
1552
|
+
ajaxStop(handler: (this: HTMLElement) => any): JQuery;
|
|
1538
1553
|
/**
|
|
1539
1554
|
* Attach a function to be executed whenever an Ajax request completes successfully. This is an Ajax Event.
|
|
1540
1555
|
*
|
|
@@ -1542,7 +1557,12 @@ interface JQuery {
|
|
|
1542
1557
|
* @see {@link https://api.jquery.com/ajaxSuccess/}
|
|
1543
1558
|
*/
|
|
1544
1559
|
ajaxSuccess(
|
|
1545
|
-
handler: (
|
|
1560
|
+
handler: (
|
|
1561
|
+
this: HTMLElement,
|
|
1562
|
+
event: JQueryEventObject,
|
|
1563
|
+
XMLHttpRequest: XMLHttpRequest,
|
|
1564
|
+
ajaxOptions: JQueryAjaxSettings,
|
|
1565
|
+
) => any,
|
|
1546
1566
|
): JQuery;
|
|
1547
1567
|
|
|
1548
1568
|
/**
|
|
@@ -1613,7 +1633,7 @@ interface JQuery {
|
|
|
1613
1633
|
* @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.
|
|
1614
1634
|
* @see {@link https://api.jquery.com/attr/#attr-attributeName-function}
|
|
1615
1635
|
*/
|
|
1616
|
-
attr(attributeName: string, func: (index: number, attr: string) => string | number): JQuery;
|
|
1636
|
+
attr(attributeName: string, func: (this: HTMLElement, index: number, attr: string) => string | number): JQuery;
|
|
1617
1637
|
/**
|
|
1618
1638
|
* Set one or more attributes for the set of matched elements.
|
|
1619
1639
|
*
|
|
@@ -1754,7 +1774,7 @@ interface JQuery {
|
|
|
1754
1774
|
* @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 value as arguments.
|
|
1755
1775
|
* @see {@link https://api.jquery.com/val/#val-function}
|
|
1756
1776
|
*/
|
|
1757
|
-
val(func: (index: number, value: string) => string): JQuery;
|
|
1777
|
+
val(func: (this: HTMLElement, index: number, value: string) => string): JQuery;
|
|
1758
1778
|
|
|
1759
1779
|
/**
|
|
1760
1780
|
* Get the value of style properties for the first element in the set of matched elements.
|
|
@@ -2028,7 +2048,7 @@ interface JQuery {
|
|
|
2028
2048
|
* @param complete A function to call once the animation is complete.
|
|
2029
2049
|
* @see {@link https://api.jquery.com/animate/#animate-properties-duration-easing-complete}
|
|
2030
2050
|
*/
|
|
2031
|
-
animate(properties: Object, duration?: string | number, complete?:
|
|
2051
|
+
animate(properties: Object, duration?: string | number, complete?: BoundFunction): JQuery;
|
|
2032
2052
|
/**
|
|
2033
2053
|
* Perform a custom animation of a set of CSS properties.
|
|
2034
2054
|
*
|
|
@@ -2038,7 +2058,7 @@ interface JQuery {
|
|
|
2038
2058
|
* @param complete A function to call once the animation is complete.
|
|
2039
2059
|
* @see {@link https://api.jquery.com/animate/#animate-properties-duration-easing-complete}
|
|
2040
2060
|
*/
|
|
2041
|
-
animate(properties: Object, duration?: string | number, easing?: string, complete?:
|
|
2061
|
+
animate(properties: Object, duration?: string | number, easing?: string, complete?: BoundFunction): JQuery;
|
|
2042
2062
|
/**
|
|
2043
2063
|
* Perform a custom animation of a set of CSS properties.
|
|
2044
2064
|
*
|
|
@@ -2064,7 +2084,7 @@ interface JQuery {
|
|
|
2064
2084
|
* @param complete A function to call once the animation is complete.
|
|
2065
2085
|
* @see {@link https://api.jquery.com/fadeIn/#fadeIn-duration-complete}
|
|
2066
2086
|
*/
|
|
2067
|
-
fadeIn(duration?: number | string, complete?:
|
|
2087
|
+
fadeIn(duration?: number | string, complete?: BoundFunction): JQuery;
|
|
2068
2088
|
/**
|
|
2069
2089
|
* Display the matched elements by fading them to opaque.
|
|
2070
2090
|
*
|
|
@@ -2073,7 +2093,7 @@ interface JQuery {
|
|
|
2073
2093
|
* @param complete A function to call once the animation is complete.
|
|
2074
2094
|
* @see {@link https://api.jquery.com/fadeIn/#fadeIn-duration-easing-complete}
|
|
2075
2095
|
*/
|
|
2076
|
-
fadeIn(duration?: number | string, easing?: string, complete?:
|
|
2096
|
+
fadeIn(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery;
|
|
2077
2097
|
/**
|
|
2078
2098
|
* Display the matched elements by fading them to opaque.
|
|
2079
2099
|
*
|
|
@@ -2089,7 +2109,7 @@ interface JQuery {
|
|
|
2089
2109
|
* @param complete A function to call once the animation is complete.
|
|
2090
2110
|
* @see {@link https://api.jquery.com/fadeOut/#fadeOut-duration-complete}
|
|
2091
2111
|
*/
|
|
2092
|
-
fadeOut(duration?: number | string, complete?:
|
|
2112
|
+
fadeOut(duration?: number | string, complete?: BoundFunction): JQuery;
|
|
2093
2113
|
/**
|
|
2094
2114
|
* Hide the matched elements by fading them to transparent.
|
|
2095
2115
|
*
|
|
@@ -2098,7 +2118,7 @@ interface JQuery {
|
|
|
2098
2118
|
* @param complete A function to call once the animation is complete.
|
|
2099
2119
|
* @see {@link https://api.jquery.com/fadeOut/#fadeOut-duration-easing-complete}
|
|
2100
2120
|
*/
|
|
2101
|
-
fadeOut(duration?: number | string, easing?: string, complete?:
|
|
2121
|
+
fadeOut(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery;
|
|
2102
2122
|
/**
|
|
2103
2123
|
* Hide the matched elements by fading them to transparent.
|
|
2104
2124
|
*
|
|
@@ -2115,7 +2135,7 @@ interface JQuery {
|
|
|
2115
2135
|
* @param complete A function to call once the animation is complete.
|
|
2116
2136
|
* @see {@link https://api.jquery.com/fadeTo/#fadeTo-duration-opacity-complete}
|
|
2117
2137
|
*/
|
|
2118
|
-
fadeTo(duration: string | number, opacity: number, complete?:
|
|
2138
|
+
fadeTo(duration: string | number, opacity: number, complete?: BoundFunction): JQuery;
|
|
2119
2139
|
/**
|
|
2120
2140
|
* Adjust the opacity of the matched elements.
|
|
2121
2141
|
*
|
|
@@ -2125,7 +2145,7 @@ interface JQuery {
|
|
|
2125
2145
|
* @param complete A function to call once the animation is complete.
|
|
2126
2146
|
* @see {@link https://api.jquery.com/fadeTo/#fadeTo-duration-opacity-easing-complete}
|
|
2127
2147
|
*/
|
|
2128
|
-
fadeTo(duration: string | number, opacity: number, easing?: string, complete?:
|
|
2148
|
+
fadeTo(duration: string | number, opacity: number, easing?: string, complete?: BoundFunction): JQuery;
|
|
2129
2149
|
|
|
2130
2150
|
/**
|
|
2131
2151
|
* Display or hide the matched elements by animating their opacity.
|
|
@@ -2134,7 +2154,7 @@ interface JQuery {
|
|
|
2134
2154
|
* @param complete A function to call once the animation is complete.
|
|
2135
2155
|
* @see {@link https://api.jquery.com/fadeToggle/#fadeToggle-duration-easing-complete}
|
|
2136
2156
|
*/
|
|
2137
|
-
fadeToggle(duration?: number | string, complete?:
|
|
2157
|
+
fadeToggle(duration?: number | string, complete?: BoundFunction): JQuery;
|
|
2138
2158
|
/**
|
|
2139
2159
|
* Display or hide the matched elements by animating their opacity.
|
|
2140
2160
|
*
|
|
@@ -2143,7 +2163,7 @@ interface JQuery {
|
|
|
2143
2163
|
* @param complete A function to call once the animation is complete.
|
|
2144
2164
|
* @see {@link https://api.jquery.com/fadeToggle/#fadeToggle-duration-easing-complete}
|
|
2145
2165
|
*/
|
|
2146
|
-
fadeToggle(duration?: number | string, easing?: string, complete?:
|
|
2166
|
+
fadeToggle(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery;
|
|
2147
2167
|
/**
|
|
2148
2168
|
* Display or hide the matched elements by animating their opacity.
|
|
2149
2169
|
*
|
|
@@ -2167,7 +2187,7 @@ interface JQuery {
|
|
|
2167
2187
|
* @param complete A function to call once the animation is complete.
|
|
2168
2188
|
* @see {@link https://api.jquery.com/hide/#hide}
|
|
2169
2189
|
*/
|
|
2170
|
-
hide(duration?: number | string, complete?:
|
|
2190
|
+
hide(duration?: number | string, complete?: BoundFunction): JQuery;
|
|
2171
2191
|
/**
|
|
2172
2192
|
* Hide the matched elements.
|
|
2173
2193
|
*
|
|
@@ -2176,7 +2196,7 @@ interface JQuery {
|
|
|
2176
2196
|
* @param complete A function to call once the animation is complete.
|
|
2177
2197
|
* @see {@link https://api.jquery.com/hide/#hide-duration-easing-complete}
|
|
2178
2198
|
*/
|
|
2179
|
-
hide(duration?: number | string, easing?: string, complete?:
|
|
2199
|
+
hide(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery;
|
|
2180
2200
|
/**
|
|
2181
2201
|
* Hide the matched elements.
|
|
2182
2202
|
*
|
|
@@ -2192,7 +2212,7 @@ interface JQuery {
|
|
|
2192
2212
|
* @param complete A function to call once the animation is complete.
|
|
2193
2213
|
* @see {@link https://api.jquery.com/show/#show}
|
|
2194
2214
|
*/
|
|
2195
|
-
show(duration?: number | string, complete?:
|
|
2215
|
+
show(duration?: number | string, complete?: BoundFunction): JQuery;
|
|
2196
2216
|
/**
|
|
2197
2217
|
* Display the matched elements.
|
|
2198
2218
|
*
|
|
@@ -2201,7 +2221,7 @@ interface JQuery {
|
|
|
2201
2221
|
* @param complete A function to call once the animation is complete.
|
|
2202
2222
|
* @see {@link https://api.jquery.com/show/#show-duration-easing-complete}
|
|
2203
2223
|
*/
|
|
2204
|
-
show(duration?: number | string, easing?: string, complete?:
|
|
2224
|
+
show(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery;
|
|
2205
2225
|
/**
|
|
2206
2226
|
* Display the matched elements.
|
|
2207
2227
|
*
|
|
@@ -2217,7 +2237,7 @@ interface JQuery {
|
|
|
2217
2237
|
* @param complete A function to call once the animation is complete.
|
|
2218
2238
|
* @see {@link https://api.jquery.com/slideDown/#slideDown-duration-complete}
|
|
2219
2239
|
*/
|
|
2220
|
-
slideDown(duration?: number | string, complete?:
|
|
2240
|
+
slideDown(duration?: number | string, complete?: BoundFunction): JQuery;
|
|
2221
2241
|
/**
|
|
2222
2242
|
* Display the matched elements with a sliding motion.
|
|
2223
2243
|
*
|
|
@@ -2226,7 +2246,7 @@ interface JQuery {
|
|
|
2226
2246
|
* @param complete A function to call once the animation is complete.
|
|
2227
2247
|
* @see {@link https://api.jquery.com/slideDown/#slideDown-duration-easing-complete}
|
|
2228
2248
|
*/
|
|
2229
|
-
slideDown(duration?: number | string, easing?: string, complete?:
|
|
2249
|
+
slideDown(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery;
|
|
2230
2250
|
/**
|
|
2231
2251
|
* Display the matched elements with a sliding motion.
|
|
2232
2252
|
*
|
|
@@ -2242,7 +2262,7 @@ interface JQuery {
|
|
|
2242
2262
|
* @param complete A function to call once the animation is complete.
|
|
2243
2263
|
* @see {@link https://api.jquery.com/slideToggle/#slideToggle-duration-complete}
|
|
2244
2264
|
*/
|
|
2245
|
-
slideToggle(duration?: number | string, complete?:
|
|
2265
|
+
slideToggle(duration?: number | string, complete?: BoundFunction): JQuery;
|
|
2246
2266
|
/**
|
|
2247
2267
|
* Display or hide the matched elements with a sliding motion.
|
|
2248
2268
|
*
|
|
@@ -2251,7 +2271,7 @@ interface JQuery {
|
|
|
2251
2271
|
* @param complete A function to call once the animation is complete.
|
|
2252
2272
|
* @see {@link https://api.jquery.com/slideToggle/#slideToggle-duration-easing-complete}
|
|
2253
2273
|
*/
|
|
2254
|
-
slideToggle(duration?: number | string, easing?: string, complete?:
|
|
2274
|
+
slideToggle(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery;
|
|
2255
2275
|
/**
|
|
2256
2276
|
* Display or hide the matched elements with a sliding motion.
|
|
2257
2277
|
*
|
|
@@ -2267,7 +2287,7 @@ interface JQuery {
|
|
|
2267
2287
|
* @param complete A function to call once the animation is complete.
|
|
2268
2288
|
* @see {@link https://api.jquery.com/slideUp/#slideUp-duration-complete}
|
|
2269
2289
|
*/
|
|
2270
|
-
slideUp(duration?: number | string, complete?:
|
|
2290
|
+
slideUp(duration?: number | string, complete?: BoundFunction): JQuery;
|
|
2271
2291
|
/**
|
|
2272
2292
|
* Hide the matched elements with a sliding motion.
|
|
2273
2293
|
*
|
|
@@ -2276,7 +2296,7 @@ interface JQuery {
|
|
|
2276
2296
|
* @param complete A function to call once the animation is complete.
|
|
2277
2297
|
* @see {@link https://api.jquery.com/slideUp/#slideUp-duration-easing-complete}
|
|
2278
2298
|
*/
|
|
2279
|
-
slideUp(duration?: number | string, easing?: string, complete?:
|
|
2299
|
+
slideUp(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery;
|
|
2280
2300
|
/**
|
|
2281
2301
|
* Hide the matched elements with a sliding motion.
|
|
2282
2302
|
*
|
|
@@ -2310,7 +2330,7 @@ interface JQuery {
|
|
|
2310
2330
|
* @param complete A function to call once the animation is complete.
|
|
2311
2331
|
* @see {@link https://api.jquery.com/toggle/#toggle-duration-complete}
|
|
2312
2332
|
*/
|
|
2313
|
-
toggle(duration?: number | string, complete?:
|
|
2333
|
+
toggle(duration?: number | string, complete?: BoundFunction): JQuery;
|
|
2314
2334
|
/**
|
|
2315
2335
|
* Display or hide the matched elements.
|
|
2316
2336
|
*
|
|
@@ -2319,7 +2339,7 @@ interface JQuery {
|
|
|
2319
2339
|
* @param complete A function to call once the animation is complete.
|
|
2320
2340
|
* @see {@link https://api.jquery.com/toggle/#toggle-duration-easing-complete}
|
|
2321
2341
|
*/
|
|
2322
|
-
toggle(duration?: number | string, easing?: string, complete?:
|
|
2342
|
+
toggle(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery;
|
|
2323
2343
|
/**
|
|
2324
2344
|
* Display or hide the matched elements.
|
|
2325
2345
|
*
|
|
@@ -2343,7 +2363,11 @@ interface JQuery {
|
|
|
2343
2363
|
* @param handler A function to execute each time the event is triggered.
|
|
2344
2364
|
* @see {@link https://api.jquery.com/bind/#bind-eventType-eventData-handler}
|
|
2345
2365
|
*/
|
|
2346
|
-
bind(
|
|
2366
|
+
bind(
|
|
2367
|
+
eventType: string,
|
|
2368
|
+
eventData: any,
|
|
2369
|
+
handler: (this: HTMLElement, eventObject: JQueryEventObject) => any,
|
|
2370
|
+
): JQuery;
|
|
2347
2371
|
/**
|
|
2348
2372
|
* Attach a handler to an event for the elements.
|
|
2349
2373
|
*
|
|
@@ -2351,7 +2375,7 @@ interface JQuery {
|
|
|
2351
2375
|
* @param handler A function to execute each time the event is triggered.
|
|
2352
2376
|
* @see {@link https://api.jquery.com/bind/#bind-eventType-eventData-handler}
|
|
2353
2377
|
*/
|
|
2354
|
-
bind(eventType: string, handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2378
|
+
bind(eventType: string, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2355
2379
|
/**
|
|
2356
2380
|
* Attach a handler to an event for the elements.
|
|
2357
2381
|
*
|
|
@@ -2388,7 +2412,7 @@ interface JQuery {
|
|
|
2388
2412
|
* @param handler A function to execute each time the event is triggered.
|
|
2389
2413
|
* @see {@link https://api.jquery.com/blur/#blur-handler}
|
|
2390
2414
|
*/
|
|
2391
|
-
blur(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2415
|
+
blur(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2392
2416
|
/**
|
|
2393
2417
|
* Bind an event handler to the "blur" JavaScript event
|
|
2394
2418
|
*
|
|
@@ -2396,7 +2420,7 @@ interface JQuery {
|
|
|
2396
2420
|
* @param handler A function to execute each time the event is triggered.
|
|
2397
2421
|
* @see {@link https://api.jquery.com/blur/#blur-eventData-handler}
|
|
2398
2422
|
*/
|
|
2399
|
-
blur(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2423
|
+
blur(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2400
2424
|
|
|
2401
2425
|
/**
|
|
2402
2426
|
* Trigger the "change" event on an element.
|
|
@@ -2409,7 +2433,7 @@ interface JQuery {
|
|
|
2409
2433
|
* @param handler A function to execute each time the event is triggered.
|
|
2410
2434
|
* @see {@link https://api.jquery.com/change/#change-handler}
|
|
2411
2435
|
*/
|
|
2412
|
-
change(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2436
|
+
change(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2413
2437
|
/**
|
|
2414
2438
|
* Bind an event handler to the "change" JavaScript event
|
|
2415
2439
|
*
|
|
@@ -2417,7 +2441,7 @@ interface JQuery {
|
|
|
2417
2441
|
* @param handler A function to execute each time the event is triggered.
|
|
2418
2442
|
* @see {@link https://api.jquery.com/change/#change-eventData-handler}
|
|
2419
2443
|
*/
|
|
2420
|
-
change(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2444
|
+
change(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2421
2445
|
|
|
2422
2446
|
/**
|
|
2423
2447
|
* Trigger the "click" event on an element.
|
|
@@ -2430,7 +2454,7 @@ interface JQuery {
|
|
|
2430
2454
|
* @param handler A function to execute each time the event is triggered.
|
|
2431
2455
|
* @see {@link https://api.jquery.com/click/#click-handler}
|
|
2432
2456
|
*/
|
|
2433
|
-
click(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2457
|
+
click(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2434
2458
|
/**
|
|
2435
2459
|
* Bind an event handler to the "click" JavaScript event
|
|
2436
2460
|
*
|
|
@@ -2438,7 +2462,7 @@ interface JQuery {
|
|
|
2438
2462
|
* @param handler A function to execute each time the event is triggered.
|
|
2439
2463
|
* @see {@link https://api.jquery.com/click/#click-eventData-handler}
|
|
2440
2464
|
*/
|
|
2441
|
-
click(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2465
|
+
click(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2442
2466
|
|
|
2443
2467
|
/**
|
|
2444
2468
|
* Trigger the "contextmenu" event on an element.
|
|
@@ -2451,7 +2475,7 @@ interface JQuery {
|
|
|
2451
2475
|
* @param handler A function to execute when the event is triggered.
|
|
2452
2476
|
* @see {@link https://api.jquery.com/contextmenu/#contextmenu-handler}
|
|
2453
2477
|
*/
|
|
2454
|
-
contextmenu(handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2478
|
+
contextmenu(handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2455
2479
|
/**
|
|
2456
2480
|
* Bind an event handler to the "contextmenu" JavaScript event.
|
|
2457
2481
|
*
|
|
@@ -2459,7 +2483,7 @@ interface JQuery {
|
|
|
2459
2483
|
* @param handler A function to execute when the event is triggered.
|
|
2460
2484
|
* @see {@link https://api.jquery.com/contextmenu/#contextmenu-eventData-handler}
|
|
2461
2485
|
*/
|
|
2462
|
-
contextmenu(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2486
|
+
contextmenu(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2463
2487
|
|
|
2464
2488
|
/**
|
|
2465
2489
|
* Trigger the "dblclick" event on an element.
|
|
@@ -2472,7 +2496,7 @@ interface JQuery {
|
|
|
2472
2496
|
* @param handler A function to execute each time the event is triggered.
|
|
2473
2497
|
* @see {@link https://api.jquery.com/dblclick/#dblclick-handler}
|
|
2474
2498
|
*/
|
|
2475
|
-
dblclick(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2499
|
+
dblclick(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2476
2500
|
/**
|
|
2477
2501
|
* Bind an event handler to the "dblclick" JavaScript event
|
|
2478
2502
|
*
|
|
@@ -2480,13 +2504,17 @@ interface JQuery {
|
|
|
2480
2504
|
* @param handler A function to execute each time the event is triggered.
|
|
2481
2505
|
* @see {@link https://api.jquery.com/dblclick/#dblclick-eventData-handler}
|
|
2482
2506
|
*/
|
|
2483
|
-
dblclick(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2507
|
+
dblclick(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2484
2508
|
|
|
2485
2509
|
/**
|
|
2486
2510
|
* 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.
|
|
2487
2511
|
* @see {@link https://api.jquery.com/delegate/#delegate-selector-eventType-handler}
|
|
2488
2512
|
*/
|
|
2489
|
-
delegate(
|
|
2513
|
+
delegate(
|
|
2514
|
+
selector: any,
|
|
2515
|
+
eventType: string,
|
|
2516
|
+
handler: (this: HTMLElement, eventObject: JQueryEventObject) => any,
|
|
2517
|
+
): JQuery;
|
|
2490
2518
|
/**
|
|
2491
2519
|
* 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.
|
|
2492
2520
|
* @see {@link https://api.jquery.com/delegate/#delegate-selector-eventType-eventData-handler}
|
|
@@ -2495,7 +2523,7 @@ interface JQuery {
|
|
|
2495
2523
|
selector: any,
|
|
2496
2524
|
eventType: string,
|
|
2497
2525
|
eventData: any,
|
|
2498
|
-
handler: (eventObject: JQueryEventObject) => any,
|
|
2526
|
+
handler: (this: HTMLElement, eventObject: JQueryEventObject) => any,
|
|
2499
2527
|
): JQuery;
|
|
2500
2528
|
|
|
2501
2529
|
/**
|
|
@@ -2509,7 +2537,7 @@ interface JQuery {
|
|
|
2509
2537
|
* @param handler A function to execute each time the event is triggered.
|
|
2510
2538
|
* @see {@link https://api.jquery.com/focus/#focus-handler}
|
|
2511
2539
|
*/
|
|
2512
|
-
focus(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2540
|
+
focus(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2513
2541
|
/**
|
|
2514
2542
|
* Bind an event handler to the "focus" JavaScript event
|
|
2515
2543
|
*
|
|
@@ -2517,7 +2545,7 @@ interface JQuery {
|
|
|
2517
2545
|
* @param handler A function to execute each time the event is triggered.
|
|
2518
2546
|
* @see {@link https://api.jquery.com/focus/#focus-eventData-handler}
|
|
2519
2547
|
*/
|
|
2520
|
-
focus(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2548
|
+
focus(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2521
2549
|
|
|
2522
2550
|
/**
|
|
2523
2551
|
* Trigger the "focusin" event on an element.
|
|
@@ -2530,7 +2558,7 @@ interface JQuery {
|
|
|
2530
2558
|
* @param handler A function to execute each time the event is triggered.
|
|
2531
2559
|
* @see {@link https://api.jquery.com/focusin/#focusin-handler}
|
|
2532
2560
|
*/
|
|
2533
|
-
focusin(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2561
|
+
focusin(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2534
2562
|
/**
|
|
2535
2563
|
* Bind an event handler to the "focusin" JavaScript event
|
|
2536
2564
|
*
|
|
@@ -2538,7 +2566,7 @@ interface JQuery {
|
|
|
2538
2566
|
* @param handler A function to execute each time the event is triggered.
|
|
2539
2567
|
* @see {@link https://api.jquery.com/focusin/#focusin-eventData-handler}
|
|
2540
2568
|
*/
|
|
2541
|
-
focusin(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2569
|
+
focusin(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2542
2570
|
|
|
2543
2571
|
/**
|
|
2544
2572
|
* Trigger the "focusout" event on an element.
|
|
@@ -2551,7 +2579,7 @@ interface JQuery {
|
|
|
2551
2579
|
* @param handler A function to execute each time the event is triggered.
|
|
2552
2580
|
* @see {@link https://api.jquery.com/focusout/#focusout-handler}
|
|
2553
2581
|
*/
|
|
2554
|
-
focusout(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2582
|
+
focusout(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2555
2583
|
/**
|
|
2556
2584
|
* Bind an event handler to the "focusout" JavaScript event
|
|
2557
2585
|
*
|
|
@@ -2559,7 +2587,7 @@ interface JQuery {
|
|
|
2559
2587
|
* @param handler A function to execute each time the event is triggered.
|
|
2560
2588
|
* @see {@link https://api.jquery.com/focusout/#focusout-eventData-handler}
|
|
2561
2589
|
*/
|
|
2562
|
-
focusout(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2590
|
+
focusout(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2563
2591
|
|
|
2564
2592
|
/**
|
|
2565
2593
|
* Bind two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements.
|
|
@@ -2569,8 +2597,8 @@ interface JQuery {
|
|
|
2569
2597
|
* @see {@link https://api.jquery.com/hover/#hover-handlerIn-handlerOut}
|
|
2570
2598
|
*/
|
|
2571
2599
|
hover(
|
|
2572
|
-
handlerIn: (eventObject: JQueryEventObject) => any,
|
|
2573
|
-
handlerOut: (eventObject: JQueryEventObject) => any,
|
|
2600
|
+
handlerIn: (this: HTMLElement, eventObject: JQueryEventObject) => any,
|
|
2601
|
+
handlerOut: (this: HTMLElement, eventObject: JQueryEventObject) => any,
|
|
2574
2602
|
): JQuery;
|
|
2575
2603
|
/**
|
|
2576
2604
|
* Bind a single handler to the matched elements, to be executed when the mouse pointer enters or leaves the elements.
|
|
@@ -2578,7 +2606,7 @@ interface JQuery {
|
|
|
2578
2606
|
* @param handlerInOut A function to execute when the mouse pointer enters or leaves the element.
|
|
2579
2607
|
* @see {@link https://api.jquery.com/hover/#hover-handlerInOut}
|
|
2580
2608
|
*/
|
|
2581
|
-
hover(handlerInOut: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2609
|
+
hover(handlerInOut: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2582
2610
|
|
|
2583
2611
|
/**
|
|
2584
2612
|
* Trigger the "keydown" event on an element.
|
|
@@ -2591,7 +2619,7 @@ interface JQuery {
|
|
|
2591
2619
|
* @param handler A function to execute each time the event is triggered.
|
|
2592
2620
|
* @see {@link https://api.jquery.com/keydown/#keydown-handler}
|
|
2593
2621
|
*/
|
|
2594
|
-
keydown(handler: (eventObject: JQueryKeyEventObject) => any): JQuery;
|
|
2622
|
+
keydown(handler: (this: HTMLElement, eventObject: JQueryKeyEventObject) => any): JQuery;
|
|
2595
2623
|
/**
|
|
2596
2624
|
* Bind an event handler to the "keydown" JavaScript event
|
|
2597
2625
|
*
|
|
@@ -2599,7 +2627,7 @@ interface JQuery {
|
|
|
2599
2627
|
* @param handler A function to execute each time the event is triggered.
|
|
2600
2628
|
* @see {@link https://api.jquery.com/keydown/#keydown-eventData-handler}
|
|
2601
2629
|
*/
|
|
2602
|
-
keydown(eventData?: any, handler?: (eventObject: JQueryKeyEventObject) => any): JQuery;
|
|
2630
|
+
keydown(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryKeyEventObject) => any): JQuery;
|
|
2603
2631
|
|
|
2604
2632
|
/**
|
|
2605
2633
|
* Trigger the "keypress" event on an element.
|
|
@@ -2612,7 +2640,7 @@ interface JQuery {
|
|
|
2612
2640
|
* @param handler A function to execute each time the event is triggered.
|
|
2613
2641
|
* @see {@link https://api.jquery.com/keypress/#keypress-handler}
|
|
2614
2642
|
*/
|
|
2615
|
-
keypress(handler: (eventObject: JQueryKeyEventObject) => any): JQuery;
|
|
2643
|
+
keypress(handler: (this: HTMLElement, eventObject: JQueryKeyEventObject) => any): JQuery;
|
|
2616
2644
|
/**
|
|
2617
2645
|
* Bind an event handler to the "keypress" JavaScript event
|
|
2618
2646
|
*
|
|
@@ -2620,7 +2648,7 @@ interface JQuery {
|
|
|
2620
2648
|
* @param handler A function to execute each time the event is triggered.
|
|
2621
2649
|
* @see {@link https://api.jquery.com/keypress/#keypress-eventData-handler}
|
|
2622
2650
|
*/
|
|
2623
|
-
keypress(eventData?: any, handler?: (eventObject: JQueryKeyEventObject) => any): JQuery;
|
|
2651
|
+
keypress(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryKeyEventObject) => any): JQuery;
|
|
2624
2652
|
|
|
2625
2653
|
/**
|
|
2626
2654
|
* Trigger the "keyup" event on an element.
|
|
@@ -2633,7 +2661,7 @@ interface JQuery {
|
|
|
2633
2661
|
* @param handler A function to execute each time the event is triggered.
|
|
2634
2662
|
* @see {@link https://api.jquery.com/keyup/#keyup-handler}
|
|
2635
2663
|
*/
|
|
2636
|
-
keyup(handler: (eventObject: JQueryKeyEventObject) => any): JQuery;
|
|
2664
|
+
keyup(handler: (this: HTMLElement, eventObject: JQueryKeyEventObject) => any): JQuery;
|
|
2637
2665
|
/**
|
|
2638
2666
|
* Bind an event handler to the "keyup" JavaScript event
|
|
2639
2667
|
*
|
|
@@ -2641,7 +2669,7 @@ interface JQuery {
|
|
|
2641
2669
|
* @param handler A function to execute each time the event is triggered.
|
|
2642
2670
|
* @see {@link https://api.jquery.com/keyup/#keyup-eventData-handler}
|
|
2643
2671
|
*/
|
|
2644
|
-
keyup(eventData?: any, handler?: (eventObject: JQueryKeyEventObject) => any): JQuery;
|
|
2672
|
+
keyup(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryKeyEventObject) => any): JQuery;
|
|
2645
2673
|
|
|
2646
2674
|
/**
|
|
2647
2675
|
* Bind an event handler to the "load" JavaScript event.
|
|
@@ -2649,7 +2677,7 @@ interface JQuery {
|
|
|
2649
2677
|
* @param handler A function to execute when the event is triggered.
|
|
2650
2678
|
* @see {@link https://api.jquery.com/load/}
|
|
2651
2679
|
*/
|
|
2652
|
-
load(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2680
|
+
load(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2653
2681
|
/**
|
|
2654
2682
|
* Bind an event handler to the "load" JavaScript event.
|
|
2655
2683
|
*
|
|
@@ -2657,7 +2685,7 @@ interface JQuery {
|
|
|
2657
2685
|
* @param handler A function to execute when the event is triggered.
|
|
2658
2686
|
* @see {@link https://api.jquery.com/load/}
|
|
2659
2687
|
*/
|
|
2660
|
-
load(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2688
|
+
load(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2661
2689
|
|
|
2662
2690
|
/**
|
|
2663
2691
|
* Trigger the "mousedown" event on an element.
|
|
@@ -2670,7 +2698,7 @@ interface JQuery {
|
|
|
2670
2698
|
* @param handler A function to execute when the event is triggered.
|
|
2671
2699
|
* @see {@link https://api.jquery.com/mousedown/#mousedown-handler}
|
|
2672
2700
|
*/
|
|
2673
|
-
mousedown(handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2701
|
+
mousedown(handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2674
2702
|
/**
|
|
2675
2703
|
* Bind an event handler to the "mousedown" JavaScript event.
|
|
2676
2704
|
*
|
|
@@ -2678,7 +2706,7 @@ interface JQuery {
|
|
|
2678
2706
|
* @param handler A function to execute when the event is triggered.
|
|
2679
2707
|
* @see {@link https://api.jquery.com/mousedown/#mousedown-eventData-handler}
|
|
2680
2708
|
*/
|
|
2681
|
-
mousedown(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2709
|
+
mousedown(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2682
2710
|
|
|
2683
2711
|
/**
|
|
2684
2712
|
* Trigger the "mouseenter" event on an element.
|
|
@@ -2691,7 +2719,7 @@ interface JQuery {
|
|
|
2691
2719
|
* @param handler A function to execute when the event is triggered.
|
|
2692
2720
|
* @see {@link https://api.jquery.com/mouseenter/#mouseenter-handler}
|
|
2693
2721
|
*/
|
|
2694
|
-
mouseenter(handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2722
|
+
mouseenter(handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2695
2723
|
/**
|
|
2696
2724
|
* Bind an event handler to be fired when the mouse enters an element.
|
|
2697
2725
|
*
|
|
@@ -2699,7 +2727,7 @@ interface JQuery {
|
|
|
2699
2727
|
* @param handler A function to execute when the event is triggered.
|
|
2700
2728
|
* @see {@link https://api.jquery.com/mouseenter/#mouseenter-eventData-handler}
|
|
2701
2729
|
*/
|
|
2702
|
-
mouseenter(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2730
|
+
mouseenter(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2703
2731
|
|
|
2704
2732
|
/**
|
|
2705
2733
|
* Trigger the "mouseleave" event on an element.
|
|
@@ -2712,7 +2740,7 @@ interface JQuery {
|
|
|
2712
2740
|
* @param handler A function to execute when the event is triggered.
|
|
2713
2741
|
* @see {@link https://api.jquery.com/mouseleave/#mouseleave-handler}
|
|
2714
2742
|
*/
|
|
2715
|
-
mouseleave(handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2743
|
+
mouseleave(handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2716
2744
|
/**
|
|
2717
2745
|
* Bind an event handler to be fired when the mouse leaves an element.
|
|
2718
2746
|
*
|
|
@@ -2720,7 +2748,7 @@ interface JQuery {
|
|
|
2720
2748
|
* @param handler A function to execute when the event is triggered.
|
|
2721
2749
|
* @see {@link https://api.jquery.com/mouseleave/#mouseleave-eventData-handler}
|
|
2722
2750
|
*/
|
|
2723
|
-
mouseleave(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2751
|
+
mouseleave(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2724
2752
|
|
|
2725
2753
|
/**
|
|
2726
2754
|
* Trigger the "mousemove" event on an element.
|
|
@@ -2733,7 +2761,7 @@ interface JQuery {
|
|
|
2733
2761
|
* @param handler A function to execute when the event is triggered.
|
|
2734
2762
|
* @see {@link https://api.jquery.com/mousemove/#mousemove-handler}
|
|
2735
2763
|
*/
|
|
2736
|
-
mousemove(handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2764
|
+
mousemove(handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2737
2765
|
/**
|
|
2738
2766
|
* Bind an event handler to the "mousemove" JavaScript event.
|
|
2739
2767
|
*
|
|
@@ -2741,7 +2769,7 @@ interface JQuery {
|
|
|
2741
2769
|
* @param handler A function to execute when the event is triggered.
|
|
2742
2770
|
* @see {@link https://api.jquery.com/mousemove/#mousemove-eventData-handler}
|
|
2743
2771
|
*/
|
|
2744
|
-
mousemove(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2772
|
+
mousemove(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2745
2773
|
|
|
2746
2774
|
/**
|
|
2747
2775
|
* Trigger the "mouseout" event on an element.
|
|
@@ -2754,7 +2782,7 @@ interface JQuery {
|
|
|
2754
2782
|
* @param handler A function to execute when the event is triggered.
|
|
2755
2783
|
* @see {@link https://api.jquery.com/mouseout/#mouseout-handler}
|
|
2756
2784
|
*/
|
|
2757
|
-
mouseout(handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2785
|
+
mouseout(handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2758
2786
|
/**
|
|
2759
2787
|
* Bind an event handler to the "mouseout" JavaScript event.
|
|
2760
2788
|
*
|
|
@@ -2762,7 +2790,7 @@ interface JQuery {
|
|
|
2762
2790
|
* @param handler A function to execute when the event is triggered.
|
|
2763
2791
|
* @see {@link https://api.jquery.com/mouseout/#mouseout-eventData-handler}
|
|
2764
2792
|
*/
|
|
2765
|
-
mouseout(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2793
|
+
mouseout(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2766
2794
|
|
|
2767
2795
|
/**
|
|
2768
2796
|
* Trigger the "mouseover" event on an element.
|
|
@@ -2775,7 +2803,7 @@ interface JQuery {
|
|
|
2775
2803
|
* @param handler A function to execute when the event is triggered.
|
|
2776
2804
|
* @see {@link https://api.jquery.com/mouseover/#mouseover-handler}
|
|
2777
2805
|
*/
|
|
2778
|
-
mouseover(handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2806
|
+
mouseover(handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2779
2807
|
/**
|
|
2780
2808
|
* Bind an event handler to the "mouseover" JavaScript event.
|
|
2781
2809
|
*
|
|
@@ -2783,7 +2811,7 @@ interface JQuery {
|
|
|
2783
2811
|
* @param handler A function to execute when the event is triggered.
|
|
2784
2812
|
* @see {@link https://api.jquery.com/mouseover/#mouseover-eventData-handler}
|
|
2785
2813
|
*/
|
|
2786
|
-
mouseover(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2814
|
+
mouseover(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2787
2815
|
|
|
2788
2816
|
/**
|
|
2789
2817
|
* Trigger the "mouseup" event on an element.
|
|
@@ -2796,7 +2824,7 @@ interface JQuery {
|
|
|
2796
2824
|
* @param handler A function to execute when the event is triggered.
|
|
2797
2825
|
* @see {@link https://api.jquery.com/mouseup/#mouseup-handler}
|
|
2798
2826
|
*/
|
|
2799
|
-
mouseup(handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2827
|
+
mouseup(handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2800
2828
|
/**
|
|
2801
2829
|
* Bind an event handler to the "mouseup" JavaScript event.
|
|
2802
2830
|
*
|
|
@@ -2804,7 +2832,7 @@ interface JQuery {
|
|
|
2804
2832
|
* @param handler A function to execute when the event is triggered.
|
|
2805
2833
|
* @see {@link https://api.jquery.com/mouseup/#mouseup-eventData-handler}
|
|
2806
2834
|
*/
|
|
2807
|
-
mouseup(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2835
|
+
mouseup(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2808
2836
|
|
|
2809
2837
|
/**
|
|
2810
2838
|
* Remove an event handler.
|
|
@@ -2819,7 +2847,11 @@ interface JQuery {
|
|
|
2819
2847
|
* @param handler A handler function previously attached for the event(s), or the special value false.
|
|
2820
2848
|
* @see {@link https://api.jquery.com/off/#off-events-selector-handler}
|
|
2821
2849
|
*/
|
|
2822
|
-
off(
|
|
2850
|
+
off(
|
|
2851
|
+
events: string,
|
|
2852
|
+
selector?: string,
|
|
2853
|
+
handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any,
|
|
2854
|
+
): JQuery;
|
|
2823
2855
|
/**
|
|
2824
2856
|
* Remove an event handler.
|
|
2825
2857
|
*
|
|
@@ -2827,7 +2859,7 @@ interface JQuery {
|
|
|
2827
2859
|
* @param handler A handler function previously attached for the event(s), or the special value false. Takes handler with extra args that can be attached with on().
|
|
2828
2860
|
* @see {@link https://api.jquery.com/off/#off-events-selector-handler}
|
|
2829
2861
|
*/
|
|
2830
|
-
off(events: string, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery;
|
|
2862
|
+
off(events: string, handler: (this: HTMLElement, eventObject: JQueryEventObject, ...args: any[]) => any): JQuery;
|
|
2831
2863
|
/**
|
|
2832
2864
|
* Remove an event handler.
|
|
2833
2865
|
*
|
|
@@ -2835,7 +2867,7 @@ interface JQuery {
|
|
|
2835
2867
|
* @param handler A handler function previously attached for the event(s), or the special value false.
|
|
2836
2868
|
* @see {@link https://api.jquery.com/off/#off-events-selector-handler}
|
|
2837
2869
|
*/
|
|
2838
|
-
off(events: string, handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2870
|
+
off(events: string, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2839
2871
|
/**
|
|
2840
2872
|
* Remove an event handler.
|
|
2841
2873
|
*
|
|
@@ -2852,7 +2884,7 @@ interface JQuery {
|
|
|
2852
2884
|
* @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. Rest parameter args is for optional parameters passed to jQuery.trigger(). Note that the actual parameters on the event handler function must be marked as optional (? syntax).
|
|
2853
2885
|
* @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
|
|
2854
2886
|
*/
|
|
2855
|
-
on(events: string, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery;
|
|
2887
|
+
on(events: string, handler: (this: HTMLElement, eventObject: JQueryEventObject, ...args: any[]) => any): JQuery;
|
|
2856
2888
|
/**
|
|
2857
2889
|
* Attach an event handler function for one or more events to the selected elements.
|
|
2858
2890
|
*
|
|
@@ -2861,7 +2893,11 @@ interface JQuery {
|
|
|
2861
2893
|
* @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false.
|
|
2862
2894
|
* @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
|
|
2863
2895
|
*/
|
|
2864
|
-
on(
|
|
2896
|
+
on(
|
|
2897
|
+
events: string,
|
|
2898
|
+
selector: string,
|
|
2899
|
+
handler: (this: HTMLElement, eventObject: JQueryEventObject, ...eventData: any[]) => any,
|
|
2900
|
+
): JQuery;
|
|
2865
2901
|
/**
|
|
2866
2902
|
* Attach an event handler function for one or more events to the selected elements.
|
|
2867
2903
|
*
|
|
@@ -2870,7 +2906,11 @@ interface JQuery {
|
|
|
2870
2906
|
* @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.
|
|
2871
2907
|
* @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
|
|
2872
2908
|
*/
|
|
2873
|
-
on(
|
|
2909
|
+
on(
|
|
2910
|
+
events: string,
|
|
2911
|
+
data: any,
|
|
2912
|
+
handler: (this: HTMLElement, eventObject: JQueryEventObject, ...args: any[]) => any,
|
|
2913
|
+
): JQuery;
|
|
2874
2914
|
/**
|
|
2875
2915
|
* Attach an event handler function for one or more events to the selected elements.
|
|
2876
2916
|
*
|
|
@@ -2884,7 +2924,7 @@ interface JQuery {
|
|
|
2884
2924
|
events: string,
|
|
2885
2925
|
selector: string,
|
|
2886
2926
|
data: any,
|
|
2887
|
-
handler: (eventObject: JQueryEventObject, ...eventData: any[]) => any,
|
|
2927
|
+
handler: (this: HTMLElement, eventObject: JQueryEventObject, ...eventData: any[]) => any,
|
|
2888
2928
|
): JQuery;
|
|
2889
2929
|
/**
|
|
2890
2930
|
* Attach an event handler function for one or more events to the selected elements.
|
|
@@ -2895,7 +2935,7 @@ interface JQuery {
|
|
|
2895
2935
|
* @see {@link https://api.jquery.com/on/#on-events-selector-data}
|
|
2896
2936
|
*/
|
|
2897
2937
|
on(
|
|
2898
|
-
events: { [key: string]: (eventObject: JQueryEventObject, ...args: any[]) => any },
|
|
2938
|
+
events: { [key: string]: (this: HTMLElement, eventObject: JQueryEventObject, ...args: any[]) => any },
|
|
2899
2939
|
selector?: string,
|
|
2900
2940
|
data?: any,
|
|
2901
2941
|
): JQuery;
|
|
@@ -2906,7 +2946,10 @@ interface JQuery {
|
|
|
2906
2946
|
* @param data Data to be passed to the handler in event.data when an event occurs.
|
|
2907
2947
|
* @see {@link https://api.jquery.com/on/#on-events-selector-data}
|
|
2908
2948
|
*/
|
|
2909
|
-
on(
|
|
2949
|
+
on(
|
|
2950
|
+
events: { [key: string]: (this: HTMLElement, eventObject: JQueryEventObject, ...args: any[]) => any },
|
|
2951
|
+
data?: any,
|
|
2952
|
+
): JQuery;
|
|
2910
2953
|
|
|
2911
2954
|
/**
|
|
2912
2955
|
* Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
|
|
@@ -2915,7 +2958,7 @@ interface JQuery {
|
|
|
2915
2958
|
* @param handler A function to execute at the time the event is triggered.
|
|
2916
2959
|
* @see {@link https://api.jquery.com/one/#one-events-data-handler}
|
|
2917
2960
|
*/
|
|
2918
|
-
one(events: string, handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2961
|
+
one(events: string, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2919
2962
|
/**
|
|
2920
2963
|
* Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
|
|
2921
2964
|
*
|
|
@@ -2924,7 +2967,7 @@ interface JQuery {
|
|
|
2924
2967
|
* @param handler A function to execute at the time the event is triggered.
|
|
2925
2968
|
* @see {@link https://api.jquery.com/one/#one-events-data-handler}
|
|
2926
2969
|
*/
|
|
2927
|
-
one(events: string, data: Object, handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2970
|
+
one(events: string, data: Object, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2928
2971
|
|
|
2929
2972
|
/**
|
|
2930
2973
|
* Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
|
|
@@ -2934,7 +2977,7 @@ interface JQuery {
|
|
|
2934
2977
|
* @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.
|
|
2935
2978
|
* @see {@link https://api.jquery.com/one/#one-events-selector-data-handler}
|
|
2936
2979
|
*/
|
|
2937
|
-
one(events: string, selector: string, handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2980
|
+
one(events: string, selector: string, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2938
2981
|
/**
|
|
2939
2982
|
* Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
|
|
2940
2983
|
*
|
|
@@ -2944,7 +2987,12 @@ interface JQuery {
|
|
|
2944
2987
|
* @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.
|
|
2945
2988
|
* @see {@link https://api.jquery.com/one/#one-events-selector-data-handler}
|
|
2946
2989
|
*/
|
|
2947
|
-
one(
|
|
2990
|
+
one(
|
|
2991
|
+
events: string,
|
|
2992
|
+
selector: string,
|
|
2993
|
+
data: any,
|
|
2994
|
+
handler: (this: HTMLElement, eventObject: JQueryEventObject) => any,
|
|
2995
|
+
): JQuery;
|
|
2948
2996
|
|
|
2949
2997
|
/**
|
|
2950
2998
|
* Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
|
|
@@ -2984,7 +3032,7 @@ interface JQuery {
|
|
|
2984
3032
|
* @param handler A function to execute each time the event is triggered.
|
|
2985
3033
|
* @see {@link https://api.jquery.com/resize/#resize-handler}
|
|
2986
3034
|
*/
|
|
2987
|
-
resize(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3035
|
+
resize(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2988
3036
|
/**
|
|
2989
3037
|
* Bind an event handler to the "resize" JavaScript event.
|
|
2990
3038
|
*
|
|
@@ -2992,7 +3040,7 @@ interface JQuery {
|
|
|
2992
3040
|
* @param handler A function to execute each time the event is triggered.
|
|
2993
3041
|
* @see {@link https://api.jquery.com/resize/#resize-eventData-handler}
|
|
2994
3042
|
*/
|
|
2995
|
-
resize(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3043
|
+
resize(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2996
3044
|
|
|
2997
3045
|
/**
|
|
2998
3046
|
* Trigger the "scroll" event on an element.
|
|
@@ -3005,7 +3053,7 @@ interface JQuery {
|
|
|
3005
3053
|
* @param handler A function to execute each time the event is triggered.
|
|
3006
3054
|
* @see {@link https://api.jquery.com/scroll/#scroll-handler}
|
|
3007
3055
|
*/
|
|
3008
|
-
scroll(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3056
|
+
scroll(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
3009
3057
|
/**
|
|
3010
3058
|
* Bind an event handler to the "scroll" JavaScript event.
|
|
3011
3059
|
*
|
|
@@ -3013,7 +3061,7 @@ interface JQuery {
|
|
|
3013
3061
|
* @param handler A function to execute each time the event is triggered.
|
|
3014
3062
|
* @see {@link https://api.jquery.com/scroll/#scroll-eventData-handler}
|
|
3015
3063
|
*/
|
|
3016
|
-
scroll(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3064
|
+
scroll(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
3017
3065
|
|
|
3018
3066
|
/**
|
|
3019
3067
|
* Trigger the "select" event on an element.
|
|
@@ -3026,7 +3074,7 @@ interface JQuery {
|
|
|
3026
3074
|
* @param handler A function to execute each time the event is triggered.
|
|
3027
3075
|
* @see {@link https://api.jquery.com/select/#select-handler}
|
|
3028
3076
|
*/
|
|
3029
|
-
select(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3077
|
+
select(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
3030
3078
|
/**
|
|
3031
3079
|
* Bind an event handler to the "select" JavaScript event.
|
|
3032
3080
|
*
|
|
@@ -3034,7 +3082,7 @@ interface JQuery {
|
|
|
3034
3082
|
* @param handler A function to execute each time the event is triggered.
|
|
3035
3083
|
* @see {@link https://api.jquery.com/select/#select-eventData-handler}
|
|
3036
3084
|
*/
|
|
3037
|
-
select(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3085
|
+
select(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
3038
3086
|
|
|
3039
3087
|
/**
|
|
3040
3088
|
* Trigger the "submit" event on an element.
|
|
@@ -3047,7 +3095,7 @@ interface JQuery {
|
|
|
3047
3095
|
* @param handler A function to execute each time the event is triggered.
|
|
3048
3096
|
* @see {@link https://api.jquery.com/submit/#submit-handler}
|
|
3049
3097
|
*/
|
|
3050
|
-
submit(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3098
|
+
submit(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
3051
3099
|
/**
|
|
3052
3100
|
* Bind an event handler to the "submit" JavaScript event
|
|
3053
3101
|
*
|
|
@@ -3055,7 +3103,7 @@ interface JQuery {
|
|
|
3055
3103
|
* @param handler A function to execute each time the event is triggered.
|
|
3056
3104
|
* @see {@link https://api.jquery.com/submit/#submit-eventData-handler}
|
|
3057
3105
|
*/
|
|
3058
|
-
submit(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3106
|
+
submit(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
3059
3107
|
|
|
3060
3108
|
/**
|
|
3061
3109
|
* Execute all handlers and behaviors attached to the matched elements for the given event type.
|
|
@@ -3099,7 +3147,7 @@ interface JQuery {
|
|
|
3099
3147
|
* @param handler The function that is to be no longer executed.
|
|
3100
3148
|
* @see {@link https://api.jquery.com/unbind/#unbind-eventType-handler}
|
|
3101
3149
|
*/
|
|
3102
|
-
unbind(eventType?: string, handler?: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3150
|
+
unbind(eventType?: string, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
3103
3151
|
/**
|
|
3104
3152
|
* Remove a previously-attached event handler from the elements.
|
|
3105
3153
|
*
|
|
@@ -3129,7 +3177,11 @@ interface JQuery {
|
|
|
3129
3177
|
* @param handler A function to execute at the time the event is triggered.
|
|
3130
3178
|
* @see {@link https://api.jquery.com/undelegate/#undelegate-selector-eventType}
|
|
3131
3179
|
*/
|
|
3132
|
-
undelegate(
|
|
3180
|
+
undelegate(
|
|
3181
|
+
selector: string,
|
|
3182
|
+
eventType: string,
|
|
3183
|
+
handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any,
|
|
3184
|
+
): JQuery;
|
|
3133
3185
|
/**
|
|
3134
3186
|
* Remove a handler from the event for all elements which match the current selector, based upon a specific set of root elements.
|
|
3135
3187
|
*
|
|
@@ -3152,7 +3204,7 @@ interface JQuery {
|
|
|
3152
3204
|
* @param handler A function to execute when the event is triggered.
|
|
3153
3205
|
* @see {@link https://api.jquery.com/unload/#unload-handler}
|
|
3154
3206
|
*/
|
|
3155
|
-
unload(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3207
|
+
unload(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
3156
3208
|
/**
|
|
3157
3209
|
* Bind an event handler to the "unload" JavaScript event. (DEPRECATED from v1.8)
|
|
3158
3210
|
*
|
|
@@ -3160,7 +3212,7 @@ interface JQuery {
|
|
|
3160
3212
|
* @param handler A function to execute when the event is triggered.
|
|
3161
3213
|
* @see {@link https://api.jquery.com/unload/#unload-eventData-handler}
|
|
3162
3214
|
*/
|
|
3163
|
-
unload(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3215
|
+
unload(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
3164
3216
|
|
|
3165
3217
|
/**
|
|
3166
3218
|
* The DOM node context originally passed to jQuery(); if none was passed then context will likely be the document. (DEPRECATED from v1.10)
|
|
@@ -3176,7 +3228,7 @@ interface JQuery {
|
|
|
3176
3228
|
* @param handler A function to execute when the event is triggered.
|
|
3177
3229
|
* @see {@link https://api.jquery.com/error/#error-handler}
|
|
3178
3230
|
*/
|
|
3179
|
-
error(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3231
|
+
error(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
3180
3232
|
/**
|
|
3181
3233
|
* Bind an event handler to the "error" JavaScript event. (DEPRECATED from v1.8)
|
|
3182
3234
|
*
|
|
@@ -3184,7 +3236,7 @@ interface JQuery {
|
|
|
3184
3236
|
* @param handler A function to execute when the event is triggered.
|
|
3185
3237
|
* @see {@link https://api.jquery.com/error/#error-eventData-handler}
|
|
3186
3238
|
*/
|
|
3187
|
-
error(eventData: any, handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3239
|
+
error(eventData: any, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
3188
3240
|
|
|
3189
3241
|
/**
|
|
3190
3242
|
* Add a collection of DOM elements onto the jQuery stack.
|
|
@@ -3217,7 +3269,7 @@ interface JQuery {
|
|
|
3217
3269
|
* @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.
|
|
3218
3270
|
* @see {@link https://api.jquery.com/after/#after-function}
|
|
3219
3271
|
*/
|
|
3220
|
-
after(func: (index: number, html: string) => string | Element | JQuery): JQuery;
|
|
3272
|
+
after(func: (this: HTMLElement, index: number, html: string) => string | Element | JQuery): JQuery;
|
|
3221
3273
|
|
|
3222
3274
|
/**
|
|
3223
3275
|
* Insert content, specified by the parameter, to the end of each element in the set of matched elements.
|
|
@@ -3351,7 +3403,7 @@ interface JQuery {
|
|
|
3351
3403
|
* @param func A function that returns content with which to replace the set of matched elements.
|
|
3352
3404
|
* @see {@link https://api.jquery.com/replaceWith/#replaceWith-function}
|
|
3353
3405
|
*/
|
|
3354
|
-
replaceWith(func: () => Element | JQuery): JQuery;
|
|
3406
|
+
replaceWith(func: (this: HTMLElement) => Element | JQuery): JQuery;
|
|
3355
3407
|
|
|
3356
3408
|
/**
|
|
3357
3409
|
* Get the combined text contents of each element in the set of matched elements, including their descendants.
|
|
@@ -3399,7 +3451,7 @@ interface JQuery {
|
|
|
3399
3451
|
* @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.
|
|
3400
3452
|
* @see {@link https://api.jquery.com/wrap/#wrap-function}
|
|
3401
3453
|
*/
|
|
3402
|
-
wrap(func: (index: number) => string | JQuery): JQuery;
|
|
3454
|
+
wrap(func: (this: HTMLElement, index: number) => string | JQuery): JQuery;
|
|
3403
3455
|
|
|
3404
3456
|
/**
|
|
3405
3457
|
* Wrap an HTML structure around all elements in the set of matched elements.
|
|
@@ -3414,7 +3466,7 @@ interface JQuery {
|
|
|
3414
3466
|
* @param func A callback function returning the HTML content or jQuery object to wrap around all the matched elements. Within the function, this refers to the first element in the set.
|
|
3415
3467
|
* @see {@link https://api.jquery.com/wrapAll/#wrapAll-function}
|
|
3416
3468
|
*/
|
|
3417
|
-
wrapAll(func: (index: number) => string): JQuery;
|
|
3469
|
+
wrapAll(func: (this: HTMLElement, index: number) => string): JQuery;
|
|
3418
3470
|
|
|
3419
3471
|
/**
|
|
3420
3472
|
* Wrap an HTML structure around the content of each element in the set of matched elements.
|
|
@@ -3429,7 +3481,7 @@ interface JQuery {
|
|
|
3429
3481
|
* @param func A callback function which generates a structure to wrap around the content of 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.
|
|
3430
3482
|
* @see {@link https://api.jquery.com/wrapInner/#wrapInner-function}
|
|
3431
3483
|
*/
|
|
3432
|
-
wrapInner(func: (index: number) => string): JQuery;
|
|
3484
|
+
wrapInner(func: (this: HTMLElement, index: number) => string): JQuery;
|
|
3433
3485
|
|
|
3434
3486
|
/**
|
|
3435
3487
|
* Iterate over a jQuery object, executing a function for each matched element.
|
|
@@ -3437,7 +3489,7 @@ interface JQuery {
|
|
|
3437
3489
|
* @param func A function to execute for each matched element. Can stop the loop by returning false.
|
|
3438
3490
|
* @see {@link https://api.jquery.com/each/}
|
|
3439
3491
|
*/
|
|
3440
|
-
each(func: (index: number, elem: Element) => boolean |
|
|
3492
|
+
each(func: (this: HTMLElement, index: number, elem: Element) => boolean | undefined): JQuery;
|
|
3441
3493
|
|
|
3442
3494
|
/**
|
|
3443
3495
|
* Retrieve one of the elements matched by the jQuery object.
|
|
@@ -3589,7 +3641,7 @@ interface JQuery {
|
|
|
3589
3641
|
* @param func A function used as a test for each element in the set. this is the current DOM element.
|
|
3590
3642
|
* @see {@link https://api.jquery.com/filter/#filter-function}
|
|
3591
3643
|
*/
|
|
3592
|
-
filter(func: (index: number, element: Element) => boolean): JQuery;
|
|
3644
|
+
filter(func: (this: HTMLElement, index: number, element: Element) => boolean): JQuery;
|
|
3593
3645
|
/**
|
|
3594
3646
|
* Reduce the set of matched elements to those that match the selector or pass the function's test.
|
|
3595
3647
|
*
|
|
@@ -3648,7 +3700,7 @@ interface JQuery {
|
|
|
3648
3700
|
* @param func A function used as a test for the set of elements. It accepts one argument, index, which is the element's index in the jQuery collection.Within the function, this refers to the current DOM element.
|
|
3649
3701
|
* @see {@link https://api.jquery.com/is/#is-function}
|
|
3650
3702
|
*/
|
|
3651
|
-
is(func: (index: number, element: Element) => boolean): boolean;
|
|
3703
|
+
is(func: (this: HTMLElement, index: number, element: Element) => boolean): boolean;
|
|
3652
3704
|
/**
|
|
3653
3705
|
* Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments.
|
|
3654
3706
|
*
|
|
@@ -3676,7 +3728,7 @@ interface JQuery {
|
|
|
3676
3728
|
* @param callback A function object that will be invoked for each element in the current set.
|
|
3677
3729
|
* @see {@link https://api.jquery.com/map/}
|
|
3678
3730
|
*/
|
|
3679
|
-
map(callback: (index: number, domElement: Element) => any): JQuery;
|
|
3731
|
+
map(callback: (this: HTMLElement, index: number, domElement: Element) => any): JQuery;
|
|
3680
3732
|
|
|
3681
3733
|
/**
|
|
3682
3734
|
* Get the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector.
|
|
@@ -3866,14 +3918,14 @@ interface JQuery {
|
|
|
3866
3918
|
* @param newQueue An array of functions to replace the current queue contents.
|
|
3867
3919
|
* @see {@link https://api.jquery.com/queue/#queue-queueName-newQueue}
|
|
3868
3920
|
*/
|
|
3869
|
-
queue(newQueue:
|
|
3921
|
+
queue(newQueue: BoundFunction[]): JQuery;
|
|
3870
3922
|
/**
|
|
3871
3923
|
* Manipulate the queue of functions to be executed, once for each matched element.
|
|
3872
3924
|
*
|
|
3873
3925
|
* @param callback The new function to add to the queue, with a function to call that will dequeue the next item.
|
|
3874
3926
|
* @see {@link https://api.jquery.com/queue/#queue-queueName-callback}
|
|
3875
3927
|
*/
|
|
3876
|
-
queue(callback:
|
|
3928
|
+
queue(callback: BoundFunction): JQuery;
|
|
3877
3929
|
/**
|
|
3878
3930
|
* Manipulate the queue of functions to be executed, once for each matched element.
|
|
3879
3931
|
*
|
|
@@ -3881,7 +3933,7 @@ interface JQuery {
|
|
|
3881
3933
|
* @param newQueue An array of functions to replace the current queue contents.
|
|
3882
3934
|
* @see {@link https://api.jquery.com/queue/#queue-queueName-newQueue}
|
|
3883
3935
|
*/
|
|
3884
|
-
queue(queueName: string, newQueue:
|
|
3936
|
+
queue(queueName: string, newQueue: BoundFunction[]): JQuery;
|
|
3885
3937
|
/**
|
|
3886
3938
|
* Manipulate the queue of functions to be executed, once for each matched element.
|
|
3887
3939
|
*
|
|
@@ -3889,7 +3941,7 @@ interface JQuery {
|
|
|
3889
3941
|
* @param callback The new function to add to the queue, with a function to call that will dequeue the next item.
|
|
3890
3942
|
* @see {@link https://api.jquery.com/queue/#queue-queueName-callback}
|
|
3891
3943
|
*/
|
|
3892
|
-
queue(queueName: string, callback:
|
|
3944
|
+
queue(queueName: string, callback: BoundFunction): JQuery;
|
|
3893
3945
|
|
|
3894
3946
|
/**
|
|
3895
3947
|
* Merge the contents of an object onto the jQuery prototype to provide new jQuery instance methods.
|
|
@@ -3897,7 +3949,7 @@ interface JQuery {
|
|
|
3897
3949
|
* @param object An object to merge onto the jQuery prototype.
|
|
3898
3950
|
* @see {@link https://api.jquery.com/jQuery.fn.extend/#jQuery-fn-extend-object}
|
|
3899
3951
|
*/
|
|
3900
|
-
extend(object: { [method: string]: (...args: any[]) => any }): JQuery;
|
|
3952
|
+
extend(object: { [method: string]: (this: JQuery, ...args: any[]) => any }): JQuery;
|
|
3901
3953
|
}
|
|
3902
3954
|
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
3903
3955
|
declare module "jquery" {
|