@types/jquery 2.0.66 → 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 +233 -184
- 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,8 +1265,7 @@ interface JQueryStatic {
|
|
|
1261
1265
|
*/
|
|
1262
1266
|
each<T>(
|
|
1263
1267
|
collection: T[],
|
|
1264
|
-
|
|
1265
|
-
callback: (indexInArray: number, valueOfElement: T) => boolean | void,
|
|
1268
|
+
callback: (this: T, indexInArray: number, valueOfElement: T) => boolean | undefined,
|
|
1266
1269
|
): T[];
|
|
1267
1270
|
|
|
1268
1271
|
/**
|
|
@@ -1501,7 +1504,9 @@ interface JQuery {
|
|
|
1501
1504
|
* @param handler The function to be invoked.
|
|
1502
1505
|
* @see {@link https://api.jquery.com/ajaxComplete/}
|
|
1503
1506
|
*/
|
|
1504
|
-
ajaxComplete(
|
|
1507
|
+
ajaxComplete(
|
|
1508
|
+
handler: (this: HTMLElement, event: JQueryEventObject, XMLHttpRequest: XMLHttpRequest, ajaxOptions: any) => any,
|
|
1509
|
+
): JQuery;
|
|
1505
1510
|
/**
|
|
1506
1511
|
* Register a handler to be called when Ajax requests complete with an error. This is an Ajax Event.
|
|
1507
1512
|
*
|
|
@@ -1510,6 +1515,7 @@ interface JQuery {
|
|
|
1510
1515
|
*/
|
|
1511
1516
|
ajaxError(
|
|
1512
1517
|
handler: (
|
|
1518
|
+
this: HTMLElement,
|
|
1513
1519
|
event: JQueryEventObject,
|
|
1514
1520
|
jqXHR: JQueryXHR,
|
|
1515
1521
|
ajaxSettings: JQueryAjaxSettings,
|
|
@@ -1522,21 +1528,28 @@ interface JQuery {
|
|
|
1522
1528
|
* @param handler The function to be invoked.
|
|
1523
1529
|
* @see {@link https://api.jquery.com/ajaxSend/}
|
|
1524
1530
|
*/
|
|
1525
|
-
ajaxSend(
|
|
1531
|
+
ajaxSend(
|
|
1532
|
+
handler: (
|
|
1533
|
+
this: HTMLElement,
|
|
1534
|
+
event: JQueryEventObject,
|
|
1535
|
+
jqXHR: JQueryXHR,
|
|
1536
|
+
ajaxOptions: JQueryAjaxSettings,
|
|
1537
|
+
) => any,
|
|
1538
|
+
): JQuery;
|
|
1526
1539
|
/**
|
|
1527
1540
|
* Register a handler to be called when the first Ajax request begins. This is an Ajax Event.
|
|
1528
1541
|
*
|
|
1529
1542
|
* @param handler The function to be invoked.
|
|
1530
1543
|
* @see {@link https://api.jquery.com/ajaxStart/}
|
|
1531
1544
|
*/
|
|
1532
|
-
ajaxStart(handler: () => any): JQuery;
|
|
1545
|
+
ajaxStart(handler: (this: HTMLElement) => any): JQuery;
|
|
1533
1546
|
/**
|
|
1534
1547
|
* Register a handler to be called when all Ajax requests have completed. This is an Ajax Event.
|
|
1535
1548
|
*
|
|
1536
1549
|
* @param handler The function to be invoked.
|
|
1537
1550
|
* @see {@link https://api.jquery.com/ajaxStop/}
|
|
1538
1551
|
*/
|
|
1539
|
-
ajaxStop(handler: () => any): JQuery;
|
|
1552
|
+
ajaxStop(handler: (this: HTMLElement) => any): JQuery;
|
|
1540
1553
|
/**
|
|
1541
1554
|
* Attach a function to be executed whenever an Ajax request completes successfully. This is an Ajax Event.
|
|
1542
1555
|
*
|
|
@@ -1544,7 +1557,12 @@ interface JQuery {
|
|
|
1544
1557
|
* @see {@link https://api.jquery.com/ajaxSuccess/}
|
|
1545
1558
|
*/
|
|
1546
1559
|
ajaxSuccess(
|
|
1547
|
-
handler: (
|
|
1560
|
+
handler: (
|
|
1561
|
+
this: HTMLElement,
|
|
1562
|
+
event: JQueryEventObject,
|
|
1563
|
+
XMLHttpRequest: XMLHttpRequest,
|
|
1564
|
+
ajaxOptions: JQueryAjaxSettings,
|
|
1565
|
+
) => any,
|
|
1548
1566
|
): JQuery;
|
|
1549
1567
|
|
|
1550
1568
|
/**
|
|
@@ -1615,7 +1633,7 @@ interface JQuery {
|
|
|
1615
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.
|
|
1616
1634
|
* @see {@link https://api.jquery.com/attr/#attr-attributeName-function}
|
|
1617
1635
|
*/
|
|
1618
|
-
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;
|
|
1619
1637
|
/**
|
|
1620
1638
|
* Set one or more attributes for the set of matched elements.
|
|
1621
1639
|
*
|
|
@@ -1756,7 +1774,7 @@ interface JQuery {
|
|
|
1756
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.
|
|
1757
1775
|
* @see {@link https://api.jquery.com/val/#val-function}
|
|
1758
1776
|
*/
|
|
1759
|
-
val(func: (index: number, value: string) => string): JQuery;
|
|
1777
|
+
val(func: (this: HTMLElement, index: number, value: string) => string): JQuery;
|
|
1760
1778
|
|
|
1761
1779
|
/**
|
|
1762
1780
|
* Get the value of style properties for the first element in the set of matched elements.
|
|
@@ -2030,7 +2048,7 @@ interface JQuery {
|
|
|
2030
2048
|
* @param complete A function to call once the animation is complete.
|
|
2031
2049
|
* @see {@link https://api.jquery.com/animate/#animate-properties-duration-easing-complete}
|
|
2032
2050
|
*/
|
|
2033
|
-
animate(properties: Object, duration?: string | number, complete?:
|
|
2051
|
+
animate(properties: Object, duration?: string | number, complete?: BoundFunction): JQuery;
|
|
2034
2052
|
/**
|
|
2035
2053
|
* Perform a custom animation of a set of CSS properties.
|
|
2036
2054
|
*
|
|
@@ -2040,7 +2058,7 @@ interface JQuery {
|
|
|
2040
2058
|
* @param complete A function to call once the animation is complete.
|
|
2041
2059
|
* @see {@link https://api.jquery.com/animate/#animate-properties-duration-easing-complete}
|
|
2042
2060
|
*/
|
|
2043
|
-
animate(properties: Object, duration?: string | number, easing?: string, complete?:
|
|
2061
|
+
animate(properties: Object, duration?: string | number, easing?: string, complete?: BoundFunction): JQuery;
|
|
2044
2062
|
/**
|
|
2045
2063
|
* Perform a custom animation of a set of CSS properties.
|
|
2046
2064
|
*
|
|
@@ -2066,7 +2084,7 @@ interface JQuery {
|
|
|
2066
2084
|
* @param complete A function to call once the animation is complete.
|
|
2067
2085
|
* @see {@link https://api.jquery.com/fadeIn/#fadeIn-duration-complete}
|
|
2068
2086
|
*/
|
|
2069
|
-
fadeIn(duration?: number | string, complete?:
|
|
2087
|
+
fadeIn(duration?: number | string, complete?: BoundFunction): JQuery;
|
|
2070
2088
|
/**
|
|
2071
2089
|
* Display the matched elements by fading them to opaque.
|
|
2072
2090
|
*
|
|
@@ -2075,7 +2093,7 @@ interface JQuery {
|
|
|
2075
2093
|
* @param complete A function to call once the animation is complete.
|
|
2076
2094
|
* @see {@link https://api.jquery.com/fadeIn/#fadeIn-duration-easing-complete}
|
|
2077
2095
|
*/
|
|
2078
|
-
fadeIn(duration?: number | string, easing?: string, complete?:
|
|
2096
|
+
fadeIn(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery;
|
|
2079
2097
|
/**
|
|
2080
2098
|
* Display the matched elements by fading them to opaque.
|
|
2081
2099
|
*
|
|
@@ -2091,7 +2109,7 @@ interface JQuery {
|
|
|
2091
2109
|
* @param complete A function to call once the animation is complete.
|
|
2092
2110
|
* @see {@link https://api.jquery.com/fadeOut/#fadeOut-duration-complete}
|
|
2093
2111
|
*/
|
|
2094
|
-
fadeOut(duration?: number | string, complete?:
|
|
2112
|
+
fadeOut(duration?: number | string, complete?: BoundFunction): JQuery;
|
|
2095
2113
|
/**
|
|
2096
2114
|
* Hide the matched elements by fading them to transparent.
|
|
2097
2115
|
*
|
|
@@ -2100,7 +2118,7 @@ interface JQuery {
|
|
|
2100
2118
|
* @param complete A function to call once the animation is complete.
|
|
2101
2119
|
* @see {@link https://api.jquery.com/fadeOut/#fadeOut-duration-easing-complete}
|
|
2102
2120
|
*/
|
|
2103
|
-
fadeOut(duration?: number | string, easing?: string, complete?:
|
|
2121
|
+
fadeOut(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery;
|
|
2104
2122
|
/**
|
|
2105
2123
|
* Hide the matched elements by fading them to transparent.
|
|
2106
2124
|
*
|
|
@@ -2117,7 +2135,7 @@ interface JQuery {
|
|
|
2117
2135
|
* @param complete A function to call once the animation is complete.
|
|
2118
2136
|
* @see {@link https://api.jquery.com/fadeTo/#fadeTo-duration-opacity-complete}
|
|
2119
2137
|
*/
|
|
2120
|
-
fadeTo(duration: string | number, opacity: number, complete?:
|
|
2138
|
+
fadeTo(duration: string | number, opacity: number, complete?: BoundFunction): JQuery;
|
|
2121
2139
|
/**
|
|
2122
2140
|
* Adjust the opacity of the matched elements.
|
|
2123
2141
|
*
|
|
@@ -2127,7 +2145,7 @@ interface JQuery {
|
|
|
2127
2145
|
* @param complete A function to call once the animation is complete.
|
|
2128
2146
|
* @see {@link https://api.jquery.com/fadeTo/#fadeTo-duration-opacity-easing-complete}
|
|
2129
2147
|
*/
|
|
2130
|
-
fadeTo(duration: string | number, opacity: number, easing?: string, complete?:
|
|
2148
|
+
fadeTo(duration: string | number, opacity: number, easing?: string, complete?: BoundFunction): JQuery;
|
|
2131
2149
|
|
|
2132
2150
|
/**
|
|
2133
2151
|
* Display or hide the matched elements by animating their opacity.
|
|
@@ -2136,7 +2154,7 @@ interface JQuery {
|
|
|
2136
2154
|
* @param complete A function to call once the animation is complete.
|
|
2137
2155
|
* @see {@link https://api.jquery.com/fadeToggle/#fadeToggle-duration-easing-complete}
|
|
2138
2156
|
*/
|
|
2139
|
-
fadeToggle(duration?: number | string, complete?:
|
|
2157
|
+
fadeToggle(duration?: number | string, complete?: BoundFunction): JQuery;
|
|
2140
2158
|
/**
|
|
2141
2159
|
* Display or hide the matched elements by animating their opacity.
|
|
2142
2160
|
*
|
|
@@ -2145,7 +2163,7 @@ interface JQuery {
|
|
|
2145
2163
|
* @param complete A function to call once the animation is complete.
|
|
2146
2164
|
* @see {@link https://api.jquery.com/fadeToggle/#fadeToggle-duration-easing-complete}
|
|
2147
2165
|
*/
|
|
2148
|
-
fadeToggle(duration?: number | string, easing?: string, complete?:
|
|
2166
|
+
fadeToggle(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery;
|
|
2149
2167
|
/**
|
|
2150
2168
|
* Display or hide the matched elements by animating their opacity.
|
|
2151
2169
|
*
|
|
@@ -2169,7 +2187,7 @@ interface JQuery {
|
|
|
2169
2187
|
* @param complete A function to call once the animation is complete.
|
|
2170
2188
|
* @see {@link https://api.jquery.com/hide/#hide}
|
|
2171
2189
|
*/
|
|
2172
|
-
hide(duration?: number | string, complete?:
|
|
2190
|
+
hide(duration?: number | string, complete?: BoundFunction): JQuery;
|
|
2173
2191
|
/**
|
|
2174
2192
|
* Hide the matched elements.
|
|
2175
2193
|
*
|
|
@@ -2178,7 +2196,7 @@ interface JQuery {
|
|
|
2178
2196
|
* @param complete A function to call once the animation is complete.
|
|
2179
2197
|
* @see {@link https://api.jquery.com/hide/#hide-duration-easing-complete}
|
|
2180
2198
|
*/
|
|
2181
|
-
hide(duration?: number | string, easing?: string, complete?:
|
|
2199
|
+
hide(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery;
|
|
2182
2200
|
/**
|
|
2183
2201
|
* Hide the matched elements.
|
|
2184
2202
|
*
|
|
@@ -2194,7 +2212,7 @@ interface JQuery {
|
|
|
2194
2212
|
* @param complete A function to call once the animation is complete.
|
|
2195
2213
|
* @see {@link https://api.jquery.com/show/#show}
|
|
2196
2214
|
*/
|
|
2197
|
-
show(duration?: number | string, complete?:
|
|
2215
|
+
show(duration?: number | string, complete?: BoundFunction): JQuery;
|
|
2198
2216
|
/**
|
|
2199
2217
|
* Display the matched elements.
|
|
2200
2218
|
*
|
|
@@ -2203,7 +2221,7 @@ interface JQuery {
|
|
|
2203
2221
|
* @param complete A function to call once the animation is complete.
|
|
2204
2222
|
* @see {@link https://api.jquery.com/show/#show-duration-easing-complete}
|
|
2205
2223
|
*/
|
|
2206
|
-
show(duration?: number | string, easing?: string, complete?:
|
|
2224
|
+
show(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery;
|
|
2207
2225
|
/**
|
|
2208
2226
|
* Display the matched elements.
|
|
2209
2227
|
*
|
|
@@ -2219,7 +2237,7 @@ interface JQuery {
|
|
|
2219
2237
|
* @param complete A function to call once the animation is complete.
|
|
2220
2238
|
* @see {@link https://api.jquery.com/slideDown/#slideDown-duration-complete}
|
|
2221
2239
|
*/
|
|
2222
|
-
slideDown(duration?: number | string, complete?:
|
|
2240
|
+
slideDown(duration?: number | string, complete?: BoundFunction): JQuery;
|
|
2223
2241
|
/**
|
|
2224
2242
|
* Display the matched elements with a sliding motion.
|
|
2225
2243
|
*
|
|
@@ -2228,7 +2246,7 @@ interface JQuery {
|
|
|
2228
2246
|
* @param complete A function to call once the animation is complete.
|
|
2229
2247
|
* @see {@link https://api.jquery.com/slideDown/#slideDown-duration-easing-complete}
|
|
2230
2248
|
*/
|
|
2231
|
-
slideDown(duration?: number | string, easing?: string, complete?:
|
|
2249
|
+
slideDown(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery;
|
|
2232
2250
|
/**
|
|
2233
2251
|
* Display the matched elements with a sliding motion.
|
|
2234
2252
|
*
|
|
@@ -2244,7 +2262,7 @@ interface JQuery {
|
|
|
2244
2262
|
* @param complete A function to call once the animation is complete.
|
|
2245
2263
|
* @see {@link https://api.jquery.com/slideToggle/#slideToggle-duration-complete}
|
|
2246
2264
|
*/
|
|
2247
|
-
slideToggle(duration?: number | string, complete?:
|
|
2265
|
+
slideToggle(duration?: number | string, complete?: BoundFunction): JQuery;
|
|
2248
2266
|
/**
|
|
2249
2267
|
* Display or hide the matched elements with a sliding motion.
|
|
2250
2268
|
*
|
|
@@ -2253,7 +2271,7 @@ interface JQuery {
|
|
|
2253
2271
|
* @param complete A function to call once the animation is complete.
|
|
2254
2272
|
* @see {@link https://api.jquery.com/slideToggle/#slideToggle-duration-easing-complete}
|
|
2255
2273
|
*/
|
|
2256
|
-
slideToggle(duration?: number | string, easing?: string, complete?:
|
|
2274
|
+
slideToggle(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery;
|
|
2257
2275
|
/**
|
|
2258
2276
|
* Display or hide the matched elements with a sliding motion.
|
|
2259
2277
|
*
|
|
@@ -2269,7 +2287,7 @@ interface JQuery {
|
|
|
2269
2287
|
* @param complete A function to call once the animation is complete.
|
|
2270
2288
|
* @see {@link https://api.jquery.com/slideUp/#slideUp-duration-complete}
|
|
2271
2289
|
*/
|
|
2272
|
-
slideUp(duration?: number | string, complete?:
|
|
2290
|
+
slideUp(duration?: number | string, complete?: BoundFunction): JQuery;
|
|
2273
2291
|
/**
|
|
2274
2292
|
* Hide the matched elements with a sliding motion.
|
|
2275
2293
|
*
|
|
@@ -2278,7 +2296,7 @@ interface JQuery {
|
|
|
2278
2296
|
* @param complete A function to call once the animation is complete.
|
|
2279
2297
|
* @see {@link https://api.jquery.com/slideUp/#slideUp-duration-easing-complete}
|
|
2280
2298
|
*/
|
|
2281
|
-
slideUp(duration?: number | string, easing?: string, complete?:
|
|
2299
|
+
slideUp(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery;
|
|
2282
2300
|
/**
|
|
2283
2301
|
* Hide the matched elements with a sliding motion.
|
|
2284
2302
|
*
|
|
@@ -2312,7 +2330,7 @@ interface JQuery {
|
|
|
2312
2330
|
* @param complete A function to call once the animation is complete.
|
|
2313
2331
|
* @see {@link https://api.jquery.com/toggle/#toggle-duration-complete}
|
|
2314
2332
|
*/
|
|
2315
|
-
toggle(duration?: number | string, complete?:
|
|
2333
|
+
toggle(duration?: number | string, complete?: BoundFunction): JQuery;
|
|
2316
2334
|
/**
|
|
2317
2335
|
* Display or hide the matched elements.
|
|
2318
2336
|
*
|
|
@@ -2321,7 +2339,7 @@ interface JQuery {
|
|
|
2321
2339
|
* @param complete A function to call once the animation is complete.
|
|
2322
2340
|
* @see {@link https://api.jquery.com/toggle/#toggle-duration-easing-complete}
|
|
2323
2341
|
*/
|
|
2324
|
-
toggle(duration?: number | string, easing?: string, complete?:
|
|
2342
|
+
toggle(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery;
|
|
2325
2343
|
/**
|
|
2326
2344
|
* Display or hide the matched elements.
|
|
2327
2345
|
*
|
|
@@ -2345,7 +2363,11 @@ interface JQuery {
|
|
|
2345
2363
|
* @param handler A function to execute each time the event is triggered.
|
|
2346
2364
|
* @see {@link https://api.jquery.com/bind/#bind-eventType-eventData-handler}
|
|
2347
2365
|
*/
|
|
2348
|
-
bind(
|
|
2366
|
+
bind(
|
|
2367
|
+
eventType: string,
|
|
2368
|
+
eventData: any,
|
|
2369
|
+
handler: (this: HTMLElement, eventObject: JQueryEventObject) => any,
|
|
2370
|
+
): JQuery;
|
|
2349
2371
|
/**
|
|
2350
2372
|
* Attach a handler to an event for the elements.
|
|
2351
2373
|
*
|
|
@@ -2353,7 +2375,7 @@ interface JQuery {
|
|
|
2353
2375
|
* @param handler A function to execute each time the event is triggered.
|
|
2354
2376
|
* @see {@link https://api.jquery.com/bind/#bind-eventType-eventData-handler}
|
|
2355
2377
|
*/
|
|
2356
|
-
bind(eventType: string, handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2378
|
+
bind(eventType: string, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2357
2379
|
/**
|
|
2358
2380
|
* Attach a handler to an event for the elements.
|
|
2359
2381
|
*
|
|
@@ -2390,7 +2412,7 @@ interface JQuery {
|
|
|
2390
2412
|
* @param handler A function to execute each time the event is triggered.
|
|
2391
2413
|
* @see {@link https://api.jquery.com/blur/#blur-handler}
|
|
2392
2414
|
*/
|
|
2393
|
-
blur(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2415
|
+
blur(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2394
2416
|
/**
|
|
2395
2417
|
* Bind an event handler to the "blur" JavaScript event
|
|
2396
2418
|
*
|
|
@@ -2398,7 +2420,7 @@ interface JQuery {
|
|
|
2398
2420
|
* @param handler A function to execute each time the event is triggered.
|
|
2399
2421
|
* @see {@link https://api.jquery.com/blur/#blur-eventData-handler}
|
|
2400
2422
|
*/
|
|
2401
|
-
blur(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2423
|
+
blur(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2402
2424
|
|
|
2403
2425
|
/**
|
|
2404
2426
|
* Trigger the "change" event on an element.
|
|
@@ -2411,7 +2433,7 @@ interface JQuery {
|
|
|
2411
2433
|
* @param handler A function to execute each time the event is triggered.
|
|
2412
2434
|
* @see {@link https://api.jquery.com/change/#change-handler}
|
|
2413
2435
|
*/
|
|
2414
|
-
change(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2436
|
+
change(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2415
2437
|
/**
|
|
2416
2438
|
* Bind an event handler to the "change" JavaScript event
|
|
2417
2439
|
*
|
|
@@ -2419,7 +2441,7 @@ interface JQuery {
|
|
|
2419
2441
|
* @param handler A function to execute each time the event is triggered.
|
|
2420
2442
|
* @see {@link https://api.jquery.com/change/#change-eventData-handler}
|
|
2421
2443
|
*/
|
|
2422
|
-
change(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2444
|
+
change(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2423
2445
|
|
|
2424
2446
|
/**
|
|
2425
2447
|
* Trigger the "click" event on an element.
|
|
@@ -2432,7 +2454,7 @@ interface JQuery {
|
|
|
2432
2454
|
* @param handler A function to execute each time the event is triggered.
|
|
2433
2455
|
* @see {@link https://api.jquery.com/click/#click-handler}
|
|
2434
2456
|
*/
|
|
2435
|
-
click(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2457
|
+
click(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2436
2458
|
/**
|
|
2437
2459
|
* Bind an event handler to the "click" JavaScript event
|
|
2438
2460
|
*
|
|
@@ -2440,7 +2462,7 @@ interface JQuery {
|
|
|
2440
2462
|
* @param handler A function to execute each time the event is triggered.
|
|
2441
2463
|
* @see {@link https://api.jquery.com/click/#click-eventData-handler}
|
|
2442
2464
|
*/
|
|
2443
|
-
click(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2465
|
+
click(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2444
2466
|
|
|
2445
2467
|
/**
|
|
2446
2468
|
* Trigger the "contextmenu" event on an element.
|
|
@@ -2453,7 +2475,7 @@ interface JQuery {
|
|
|
2453
2475
|
* @param handler A function to execute when the event is triggered.
|
|
2454
2476
|
* @see {@link https://api.jquery.com/contextmenu/#contextmenu-handler}
|
|
2455
2477
|
*/
|
|
2456
|
-
contextmenu(handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2478
|
+
contextmenu(handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2457
2479
|
/**
|
|
2458
2480
|
* Bind an event handler to the "contextmenu" JavaScript event.
|
|
2459
2481
|
*
|
|
@@ -2461,7 +2483,7 @@ interface JQuery {
|
|
|
2461
2483
|
* @param handler A function to execute when the event is triggered.
|
|
2462
2484
|
* @see {@link https://api.jquery.com/contextmenu/#contextmenu-eventData-handler}
|
|
2463
2485
|
*/
|
|
2464
|
-
contextmenu(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2486
|
+
contextmenu(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2465
2487
|
|
|
2466
2488
|
/**
|
|
2467
2489
|
* Trigger the "dblclick" event on an element.
|
|
@@ -2474,7 +2496,7 @@ interface JQuery {
|
|
|
2474
2496
|
* @param handler A function to execute each time the event is triggered.
|
|
2475
2497
|
* @see {@link https://api.jquery.com/dblclick/#dblclick-handler}
|
|
2476
2498
|
*/
|
|
2477
|
-
dblclick(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2499
|
+
dblclick(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2478
2500
|
/**
|
|
2479
2501
|
* Bind an event handler to the "dblclick" JavaScript event
|
|
2480
2502
|
*
|
|
@@ -2482,13 +2504,17 @@ interface JQuery {
|
|
|
2482
2504
|
* @param handler A function to execute each time the event is triggered.
|
|
2483
2505
|
* @see {@link https://api.jquery.com/dblclick/#dblclick-eventData-handler}
|
|
2484
2506
|
*/
|
|
2485
|
-
dblclick(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2507
|
+
dblclick(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2486
2508
|
|
|
2487
2509
|
/**
|
|
2488
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.
|
|
2489
2511
|
* @see {@link https://api.jquery.com/delegate/#delegate-selector-eventType-handler}
|
|
2490
2512
|
*/
|
|
2491
|
-
delegate(
|
|
2513
|
+
delegate(
|
|
2514
|
+
selector: any,
|
|
2515
|
+
eventType: string,
|
|
2516
|
+
handler: (this: HTMLElement, eventObject: JQueryEventObject) => any,
|
|
2517
|
+
): JQuery;
|
|
2492
2518
|
/**
|
|
2493
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.
|
|
2494
2520
|
* @see {@link https://api.jquery.com/delegate/#delegate-selector-eventType-eventData-handler}
|
|
@@ -2497,7 +2523,7 @@ interface JQuery {
|
|
|
2497
2523
|
selector: any,
|
|
2498
2524
|
eventType: string,
|
|
2499
2525
|
eventData: any,
|
|
2500
|
-
handler: (eventObject: JQueryEventObject) => any,
|
|
2526
|
+
handler: (this: HTMLElement, eventObject: JQueryEventObject) => any,
|
|
2501
2527
|
): JQuery;
|
|
2502
2528
|
|
|
2503
2529
|
/**
|
|
@@ -2511,7 +2537,7 @@ interface JQuery {
|
|
|
2511
2537
|
* @param handler A function to execute each time the event is triggered.
|
|
2512
2538
|
* @see {@link https://api.jquery.com/focus/#focus-handler}
|
|
2513
2539
|
*/
|
|
2514
|
-
focus(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2540
|
+
focus(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2515
2541
|
/**
|
|
2516
2542
|
* Bind an event handler to the "focus" JavaScript event
|
|
2517
2543
|
*
|
|
@@ -2519,7 +2545,7 @@ interface JQuery {
|
|
|
2519
2545
|
* @param handler A function to execute each time the event is triggered.
|
|
2520
2546
|
* @see {@link https://api.jquery.com/focus/#focus-eventData-handler}
|
|
2521
2547
|
*/
|
|
2522
|
-
focus(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2548
|
+
focus(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2523
2549
|
|
|
2524
2550
|
/**
|
|
2525
2551
|
* Trigger the "focusin" event on an element.
|
|
@@ -2532,7 +2558,7 @@ interface JQuery {
|
|
|
2532
2558
|
* @param handler A function to execute each time the event is triggered.
|
|
2533
2559
|
* @see {@link https://api.jquery.com/focusin/#focusin-handler}
|
|
2534
2560
|
*/
|
|
2535
|
-
focusin(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2561
|
+
focusin(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2536
2562
|
/**
|
|
2537
2563
|
* Bind an event handler to the "focusin" JavaScript event
|
|
2538
2564
|
*
|
|
@@ -2540,7 +2566,7 @@ interface JQuery {
|
|
|
2540
2566
|
* @param handler A function to execute each time the event is triggered.
|
|
2541
2567
|
* @see {@link https://api.jquery.com/focusin/#focusin-eventData-handler}
|
|
2542
2568
|
*/
|
|
2543
|
-
focusin(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2569
|
+
focusin(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2544
2570
|
|
|
2545
2571
|
/**
|
|
2546
2572
|
* Trigger the "focusout" event on an element.
|
|
@@ -2553,7 +2579,7 @@ interface JQuery {
|
|
|
2553
2579
|
* @param handler A function to execute each time the event is triggered.
|
|
2554
2580
|
* @see {@link https://api.jquery.com/focusout/#focusout-handler}
|
|
2555
2581
|
*/
|
|
2556
|
-
focusout(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2582
|
+
focusout(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2557
2583
|
/**
|
|
2558
2584
|
* Bind an event handler to the "focusout" JavaScript event
|
|
2559
2585
|
*
|
|
@@ -2561,7 +2587,7 @@ interface JQuery {
|
|
|
2561
2587
|
* @param handler A function to execute each time the event is triggered.
|
|
2562
2588
|
* @see {@link https://api.jquery.com/focusout/#focusout-eventData-handler}
|
|
2563
2589
|
*/
|
|
2564
|
-
focusout(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2590
|
+
focusout(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2565
2591
|
|
|
2566
2592
|
/**
|
|
2567
2593
|
* Bind two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements.
|
|
@@ -2571,8 +2597,8 @@ interface JQuery {
|
|
|
2571
2597
|
* @see {@link https://api.jquery.com/hover/#hover-handlerIn-handlerOut}
|
|
2572
2598
|
*/
|
|
2573
2599
|
hover(
|
|
2574
|
-
handlerIn: (eventObject: JQueryEventObject) => any,
|
|
2575
|
-
handlerOut: (eventObject: JQueryEventObject) => any,
|
|
2600
|
+
handlerIn: (this: HTMLElement, eventObject: JQueryEventObject) => any,
|
|
2601
|
+
handlerOut: (this: HTMLElement, eventObject: JQueryEventObject) => any,
|
|
2576
2602
|
): JQuery;
|
|
2577
2603
|
/**
|
|
2578
2604
|
* Bind a single handler to the matched elements, to be executed when the mouse pointer enters or leaves the elements.
|
|
@@ -2580,7 +2606,7 @@ interface JQuery {
|
|
|
2580
2606
|
* @param handlerInOut A function to execute when the mouse pointer enters or leaves the element.
|
|
2581
2607
|
* @see {@link https://api.jquery.com/hover/#hover-handlerInOut}
|
|
2582
2608
|
*/
|
|
2583
|
-
hover(handlerInOut: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2609
|
+
hover(handlerInOut: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2584
2610
|
|
|
2585
2611
|
/**
|
|
2586
2612
|
* Trigger the "keydown" event on an element.
|
|
@@ -2593,7 +2619,7 @@ interface JQuery {
|
|
|
2593
2619
|
* @param handler A function to execute each time the event is triggered.
|
|
2594
2620
|
* @see {@link https://api.jquery.com/keydown/#keydown-handler}
|
|
2595
2621
|
*/
|
|
2596
|
-
keydown(handler: (eventObject: JQueryKeyEventObject) => any): JQuery;
|
|
2622
|
+
keydown(handler: (this: HTMLElement, eventObject: JQueryKeyEventObject) => any): JQuery;
|
|
2597
2623
|
/**
|
|
2598
2624
|
* Bind an event handler to the "keydown" JavaScript event
|
|
2599
2625
|
*
|
|
@@ -2601,7 +2627,7 @@ interface JQuery {
|
|
|
2601
2627
|
* @param handler A function to execute each time the event is triggered.
|
|
2602
2628
|
* @see {@link https://api.jquery.com/keydown/#keydown-eventData-handler}
|
|
2603
2629
|
*/
|
|
2604
|
-
keydown(eventData?: any, handler?: (eventObject: JQueryKeyEventObject) => any): JQuery;
|
|
2630
|
+
keydown(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryKeyEventObject) => any): JQuery;
|
|
2605
2631
|
|
|
2606
2632
|
/**
|
|
2607
2633
|
* Trigger the "keypress" event on an element.
|
|
@@ -2614,7 +2640,7 @@ interface JQuery {
|
|
|
2614
2640
|
* @param handler A function to execute each time the event is triggered.
|
|
2615
2641
|
* @see {@link https://api.jquery.com/keypress/#keypress-handler}
|
|
2616
2642
|
*/
|
|
2617
|
-
keypress(handler: (eventObject: JQueryKeyEventObject) => any): JQuery;
|
|
2643
|
+
keypress(handler: (this: HTMLElement, eventObject: JQueryKeyEventObject) => any): JQuery;
|
|
2618
2644
|
/**
|
|
2619
2645
|
* Bind an event handler to the "keypress" JavaScript event
|
|
2620
2646
|
*
|
|
@@ -2622,7 +2648,7 @@ interface JQuery {
|
|
|
2622
2648
|
* @param handler A function to execute each time the event is triggered.
|
|
2623
2649
|
* @see {@link https://api.jquery.com/keypress/#keypress-eventData-handler}
|
|
2624
2650
|
*/
|
|
2625
|
-
keypress(eventData?: any, handler?: (eventObject: JQueryKeyEventObject) => any): JQuery;
|
|
2651
|
+
keypress(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryKeyEventObject) => any): JQuery;
|
|
2626
2652
|
|
|
2627
2653
|
/**
|
|
2628
2654
|
* Trigger the "keyup" event on an element.
|
|
@@ -2635,7 +2661,7 @@ interface JQuery {
|
|
|
2635
2661
|
* @param handler A function to execute each time the event is triggered.
|
|
2636
2662
|
* @see {@link https://api.jquery.com/keyup/#keyup-handler}
|
|
2637
2663
|
*/
|
|
2638
|
-
keyup(handler: (eventObject: JQueryKeyEventObject) => any): JQuery;
|
|
2664
|
+
keyup(handler: (this: HTMLElement, eventObject: JQueryKeyEventObject) => any): JQuery;
|
|
2639
2665
|
/**
|
|
2640
2666
|
* Bind an event handler to the "keyup" JavaScript event
|
|
2641
2667
|
*
|
|
@@ -2643,7 +2669,7 @@ interface JQuery {
|
|
|
2643
2669
|
* @param handler A function to execute each time the event is triggered.
|
|
2644
2670
|
* @see {@link https://api.jquery.com/keyup/#keyup-eventData-handler}
|
|
2645
2671
|
*/
|
|
2646
|
-
keyup(eventData?: any, handler?: (eventObject: JQueryKeyEventObject) => any): JQuery;
|
|
2672
|
+
keyup(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryKeyEventObject) => any): JQuery;
|
|
2647
2673
|
|
|
2648
2674
|
/**
|
|
2649
2675
|
* Bind an event handler to the "load" JavaScript event.
|
|
@@ -2651,7 +2677,7 @@ interface JQuery {
|
|
|
2651
2677
|
* @param handler A function to execute when the event is triggered.
|
|
2652
2678
|
* @see {@link https://api.jquery.com/load/}
|
|
2653
2679
|
*/
|
|
2654
|
-
load(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2680
|
+
load(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2655
2681
|
/**
|
|
2656
2682
|
* Bind an event handler to the "load" JavaScript event.
|
|
2657
2683
|
*
|
|
@@ -2659,7 +2685,7 @@ interface JQuery {
|
|
|
2659
2685
|
* @param handler A function to execute when the event is triggered.
|
|
2660
2686
|
* @see {@link https://api.jquery.com/load/}
|
|
2661
2687
|
*/
|
|
2662
|
-
load(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2688
|
+
load(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2663
2689
|
|
|
2664
2690
|
/**
|
|
2665
2691
|
* Trigger the "mousedown" event on an element.
|
|
@@ -2672,7 +2698,7 @@ interface JQuery {
|
|
|
2672
2698
|
* @param handler A function to execute when the event is triggered.
|
|
2673
2699
|
* @see {@link https://api.jquery.com/mousedown/#mousedown-handler}
|
|
2674
2700
|
*/
|
|
2675
|
-
mousedown(handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2701
|
+
mousedown(handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2676
2702
|
/**
|
|
2677
2703
|
* Bind an event handler to the "mousedown" JavaScript event.
|
|
2678
2704
|
*
|
|
@@ -2680,7 +2706,7 @@ interface JQuery {
|
|
|
2680
2706
|
* @param handler A function to execute when the event is triggered.
|
|
2681
2707
|
* @see {@link https://api.jquery.com/mousedown/#mousedown-eventData-handler}
|
|
2682
2708
|
*/
|
|
2683
|
-
mousedown(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2709
|
+
mousedown(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2684
2710
|
|
|
2685
2711
|
/**
|
|
2686
2712
|
* Trigger the "mouseenter" event on an element.
|
|
@@ -2693,7 +2719,7 @@ interface JQuery {
|
|
|
2693
2719
|
* @param handler A function to execute when the event is triggered.
|
|
2694
2720
|
* @see {@link https://api.jquery.com/mouseenter/#mouseenter-handler}
|
|
2695
2721
|
*/
|
|
2696
|
-
mouseenter(handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2722
|
+
mouseenter(handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2697
2723
|
/**
|
|
2698
2724
|
* Bind an event handler to be fired when the mouse enters an element.
|
|
2699
2725
|
*
|
|
@@ -2701,7 +2727,7 @@ interface JQuery {
|
|
|
2701
2727
|
* @param handler A function to execute when the event is triggered.
|
|
2702
2728
|
* @see {@link https://api.jquery.com/mouseenter/#mouseenter-eventData-handler}
|
|
2703
2729
|
*/
|
|
2704
|
-
mouseenter(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2730
|
+
mouseenter(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2705
2731
|
|
|
2706
2732
|
/**
|
|
2707
2733
|
* Trigger the "mouseleave" event on an element.
|
|
@@ -2714,7 +2740,7 @@ interface JQuery {
|
|
|
2714
2740
|
* @param handler A function to execute when the event is triggered.
|
|
2715
2741
|
* @see {@link https://api.jquery.com/mouseleave/#mouseleave-handler}
|
|
2716
2742
|
*/
|
|
2717
|
-
mouseleave(handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2743
|
+
mouseleave(handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2718
2744
|
/**
|
|
2719
2745
|
* Bind an event handler to be fired when the mouse leaves an element.
|
|
2720
2746
|
*
|
|
@@ -2722,7 +2748,7 @@ interface JQuery {
|
|
|
2722
2748
|
* @param handler A function to execute when the event is triggered.
|
|
2723
2749
|
* @see {@link https://api.jquery.com/mouseleave/#mouseleave-eventData-handler}
|
|
2724
2750
|
*/
|
|
2725
|
-
mouseleave(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2751
|
+
mouseleave(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2726
2752
|
|
|
2727
2753
|
/**
|
|
2728
2754
|
* Trigger the "mousemove" event on an element.
|
|
@@ -2735,7 +2761,7 @@ interface JQuery {
|
|
|
2735
2761
|
* @param handler A function to execute when the event is triggered.
|
|
2736
2762
|
* @see {@link https://api.jquery.com/mousemove/#mousemove-handler}
|
|
2737
2763
|
*/
|
|
2738
|
-
mousemove(handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2764
|
+
mousemove(handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2739
2765
|
/**
|
|
2740
2766
|
* Bind an event handler to the "mousemove" JavaScript event.
|
|
2741
2767
|
*
|
|
@@ -2743,7 +2769,7 @@ interface JQuery {
|
|
|
2743
2769
|
* @param handler A function to execute when the event is triggered.
|
|
2744
2770
|
* @see {@link https://api.jquery.com/mousemove/#mousemove-eventData-handler}
|
|
2745
2771
|
*/
|
|
2746
|
-
mousemove(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2772
|
+
mousemove(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2747
2773
|
|
|
2748
2774
|
/**
|
|
2749
2775
|
* Trigger the "mouseout" event on an element.
|
|
@@ -2756,7 +2782,7 @@ interface JQuery {
|
|
|
2756
2782
|
* @param handler A function to execute when the event is triggered.
|
|
2757
2783
|
* @see {@link https://api.jquery.com/mouseout/#mouseout-handler}
|
|
2758
2784
|
*/
|
|
2759
|
-
mouseout(handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2785
|
+
mouseout(handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2760
2786
|
/**
|
|
2761
2787
|
* Bind an event handler to the "mouseout" JavaScript event.
|
|
2762
2788
|
*
|
|
@@ -2764,7 +2790,7 @@ interface JQuery {
|
|
|
2764
2790
|
* @param handler A function to execute when the event is triggered.
|
|
2765
2791
|
* @see {@link https://api.jquery.com/mouseout/#mouseout-eventData-handler}
|
|
2766
2792
|
*/
|
|
2767
|
-
mouseout(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2793
|
+
mouseout(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2768
2794
|
|
|
2769
2795
|
/**
|
|
2770
2796
|
* Trigger the "mouseover" event on an element.
|
|
@@ -2777,7 +2803,7 @@ interface JQuery {
|
|
|
2777
2803
|
* @param handler A function to execute when the event is triggered.
|
|
2778
2804
|
* @see {@link https://api.jquery.com/mouseover/#mouseover-handler}
|
|
2779
2805
|
*/
|
|
2780
|
-
mouseover(handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2806
|
+
mouseover(handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2781
2807
|
/**
|
|
2782
2808
|
* Bind an event handler to the "mouseover" JavaScript event.
|
|
2783
2809
|
*
|
|
@@ -2785,7 +2811,7 @@ interface JQuery {
|
|
|
2785
2811
|
* @param handler A function to execute when the event is triggered.
|
|
2786
2812
|
* @see {@link https://api.jquery.com/mouseover/#mouseover-eventData-handler}
|
|
2787
2813
|
*/
|
|
2788
|
-
mouseover(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2814
|
+
mouseover(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2789
2815
|
|
|
2790
2816
|
/**
|
|
2791
2817
|
* Trigger the "mouseup" event on an element.
|
|
@@ -2798,7 +2824,7 @@ interface JQuery {
|
|
|
2798
2824
|
* @param handler A function to execute when the event is triggered.
|
|
2799
2825
|
* @see {@link https://api.jquery.com/mouseup/#mouseup-handler}
|
|
2800
2826
|
*/
|
|
2801
|
-
mouseup(handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2827
|
+
mouseup(handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2802
2828
|
/**
|
|
2803
2829
|
* Bind an event handler to the "mouseup" JavaScript event.
|
|
2804
2830
|
*
|
|
@@ -2806,7 +2832,7 @@ interface JQuery {
|
|
|
2806
2832
|
* @param handler A function to execute when the event is triggered.
|
|
2807
2833
|
* @see {@link https://api.jquery.com/mouseup/#mouseup-eventData-handler}
|
|
2808
2834
|
*/
|
|
2809
|
-
mouseup(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2835
|
+
mouseup(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery;
|
|
2810
2836
|
|
|
2811
2837
|
/**
|
|
2812
2838
|
* Remove an event handler.
|
|
@@ -2821,7 +2847,11 @@ interface JQuery {
|
|
|
2821
2847
|
* @param handler A handler function previously attached for the event(s), or the special value false.
|
|
2822
2848
|
* @see {@link https://api.jquery.com/off/#off-events-selector-handler}
|
|
2823
2849
|
*/
|
|
2824
|
-
off(
|
|
2850
|
+
off(
|
|
2851
|
+
events: string,
|
|
2852
|
+
selector?: string,
|
|
2853
|
+
handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any,
|
|
2854
|
+
): JQuery;
|
|
2825
2855
|
/**
|
|
2826
2856
|
* Remove an event handler.
|
|
2827
2857
|
*
|
|
@@ -2829,7 +2859,7 @@ interface JQuery {
|
|
|
2829
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().
|
|
2830
2860
|
* @see {@link https://api.jquery.com/off/#off-events-selector-handler}
|
|
2831
2861
|
*/
|
|
2832
|
-
off(events: string, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery;
|
|
2862
|
+
off(events: string, handler: (this: HTMLElement, eventObject: JQueryEventObject, ...args: any[]) => any): JQuery;
|
|
2833
2863
|
/**
|
|
2834
2864
|
* Remove an event handler.
|
|
2835
2865
|
*
|
|
@@ -2837,7 +2867,7 @@ interface JQuery {
|
|
|
2837
2867
|
* @param handler A handler function previously attached for the event(s), or the special value false.
|
|
2838
2868
|
* @see {@link https://api.jquery.com/off/#off-events-selector-handler}
|
|
2839
2869
|
*/
|
|
2840
|
-
off(events: string, handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2870
|
+
off(events: string, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2841
2871
|
/**
|
|
2842
2872
|
* Remove an event handler.
|
|
2843
2873
|
*
|
|
@@ -2854,7 +2884,7 @@ interface JQuery {
|
|
|
2854
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).
|
|
2855
2885
|
* @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
|
|
2856
2886
|
*/
|
|
2857
|
-
on(events: string, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery;
|
|
2887
|
+
on(events: string, handler: (this: HTMLElement, eventObject: JQueryEventObject, ...args: any[]) => any): JQuery;
|
|
2858
2888
|
/**
|
|
2859
2889
|
* Attach an event handler function for one or more events to the selected elements.
|
|
2860
2890
|
*
|
|
@@ -2863,7 +2893,11 @@ interface JQuery {
|
|
|
2863
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.
|
|
2864
2894
|
* @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
|
|
2865
2895
|
*/
|
|
2866
|
-
on(
|
|
2896
|
+
on(
|
|
2897
|
+
events: string,
|
|
2898
|
+
selector: string,
|
|
2899
|
+
handler: (this: HTMLElement, eventObject: JQueryEventObject, ...eventData: any[]) => any,
|
|
2900
|
+
): JQuery;
|
|
2867
2901
|
/**
|
|
2868
2902
|
* Attach an event handler function for one or more events to the selected elements.
|
|
2869
2903
|
*
|
|
@@ -2872,7 +2906,11 @@ interface JQuery {
|
|
|
2872
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.
|
|
2873
2907
|
* @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
|
|
2874
2908
|
*/
|
|
2875
|
-
on(
|
|
2909
|
+
on(
|
|
2910
|
+
events: string,
|
|
2911
|
+
data: any,
|
|
2912
|
+
handler: (this: HTMLElement, eventObject: JQueryEventObject, ...args: any[]) => any,
|
|
2913
|
+
): JQuery;
|
|
2876
2914
|
/**
|
|
2877
2915
|
* Attach an event handler function for one or more events to the selected elements.
|
|
2878
2916
|
*
|
|
@@ -2886,7 +2924,7 @@ interface JQuery {
|
|
|
2886
2924
|
events: string,
|
|
2887
2925
|
selector: string,
|
|
2888
2926
|
data: any,
|
|
2889
|
-
handler: (eventObject: JQueryEventObject, ...eventData: any[]) => any,
|
|
2927
|
+
handler: (this: HTMLElement, eventObject: JQueryEventObject, ...eventData: any[]) => any,
|
|
2890
2928
|
): JQuery;
|
|
2891
2929
|
/**
|
|
2892
2930
|
* Attach an event handler function for one or more events to the selected elements.
|
|
@@ -2897,7 +2935,7 @@ interface JQuery {
|
|
|
2897
2935
|
* @see {@link https://api.jquery.com/on/#on-events-selector-data}
|
|
2898
2936
|
*/
|
|
2899
2937
|
on(
|
|
2900
|
-
events: { [key: string]: (eventObject: JQueryEventObject, ...args: any[]) => any },
|
|
2938
|
+
events: { [key: string]: (this: HTMLElement, eventObject: JQueryEventObject, ...args: any[]) => any },
|
|
2901
2939
|
selector?: string,
|
|
2902
2940
|
data?: any,
|
|
2903
2941
|
): JQuery;
|
|
@@ -2908,7 +2946,10 @@ interface JQuery {
|
|
|
2908
2946
|
* @param data Data to be passed to the handler in event.data when an event occurs.
|
|
2909
2947
|
* @see {@link https://api.jquery.com/on/#on-events-selector-data}
|
|
2910
2948
|
*/
|
|
2911
|
-
on(
|
|
2949
|
+
on(
|
|
2950
|
+
events: { [key: string]: (this: HTMLElement, eventObject: JQueryEventObject, ...args: any[]) => any },
|
|
2951
|
+
data?: any,
|
|
2952
|
+
): JQuery;
|
|
2912
2953
|
|
|
2913
2954
|
/**
|
|
2914
2955
|
* Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
|
|
@@ -2917,7 +2958,7 @@ interface JQuery {
|
|
|
2917
2958
|
* @param handler A function to execute at the time the event is triggered.
|
|
2918
2959
|
* @see {@link https://api.jquery.com/one/#one-events-data-handler}
|
|
2919
2960
|
*/
|
|
2920
|
-
one(events: string, handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2961
|
+
one(events: string, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2921
2962
|
/**
|
|
2922
2963
|
* Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
|
|
2923
2964
|
*
|
|
@@ -2926,7 +2967,7 @@ interface JQuery {
|
|
|
2926
2967
|
* @param handler A function to execute at the time the event is triggered.
|
|
2927
2968
|
* @see {@link https://api.jquery.com/one/#one-events-data-handler}
|
|
2928
2969
|
*/
|
|
2929
|
-
one(events: string, data: Object, handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2970
|
+
one(events: string, data: Object, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2930
2971
|
|
|
2931
2972
|
/**
|
|
2932
2973
|
* Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
|
|
@@ -2936,7 +2977,7 @@ interface JQuery {
|
|
|
2936
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.
|
|
2937
2978
|
* @see {@link https://api.jquery.com/one/#one-events-selector-data-handler}
|
|
2938
2979
|
*/
|
|
2939
|
-
one(events: string, selector: string, handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
2980
|
+
one(events: string, selector: string, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2940
2981
|
/**
|
|
2941
2982
|
* Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
|
|
2942
2983
|
*
|
|
@@ -2946,7 +2987,12 @@ interface JQuery {
|
|
|
2946
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.
|
|
2947
2988
|
* @see {@link https://api.jquery.com/one/#one-events-selector-data-handler}
|
|
2948
2989
|
*/
|
|
2949
|
-
one(
|
|
2990
|
+
one(
|
|
2991
|
+
events: string,
|
|
2992
|
+
selector: string,
|
|
2993
|
+
data: any,
|
|
2994
|
+
handler: (this: HTMLElement, eventObject: JQueryEventObject) => any,
|
|
2995
|
+
): JQuery;
|
|
2950
2996
|
|
|
2951
2997
|
/**
|
|
2952
2998
|
* Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
|
|
@@ -2986,7 +3032,7 @@ interface JQuery {
|
|
|
2986
3032
|
* @param handler A function to execute each time the event is triggered.
|
|
2987
3033
|
* @see {@link https://api.jquery.com/resize/#resize-handler}
|
|
2988
3034
|
*/
|
|
2989
|
-
resize(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3035
|
+
resize(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2990
3036
|
/**
|
|
2991
3037
|
* Bind an event handler to the "resize" JavaScript event.
|
|
2992
3038
|
*
|
|
@@ -2994,7 +3040,7 @@ interface JQuery {
|
|
|
2994
3040
|
* @param handler A function to execute each time the event is triggered.
|
|
2995
3041
|
* @see {@link https://api.jquery.com/resize/#resize-eventData-handler}
|
|
2996
3042
|
*/
|
|
2997
|
-
resize(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3043
|
+
resize(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
2998
3044
|
|
|
2999
3045
|
/**
|
|
3000
3046
|
* Trigger the "scroll" event on an element.
|
|
@@ -3007,7 +3053,7 @@ interface JQuery {
|
|
|
3007
3053
|
* @param handler A function to execute each time the event is triggered.
|
|
3008
3054
|
* @see {@link https://api.jquery.com/scroll/#scroll-handler}
|
|
3009
3055
|
*/
|
|
3010
|
-
scroll(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3056
|
+
scroll(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
3011
3057
|
/**
|
|
3012
3058
|
* Bind an event handler to the "scroll" JavaScript event.
|
|
3013
3059
|
*
|
|
@@ -3015,7 +3061,7 @@ interface JQuery {
|
|
|
3015
3061
|
* @param handler A function to execute each time the event is triggered.
|
|
3016
3062
|
* @see {@link https://api.jquery.com/scroll/#scroll-eventData-handler}
|
|
3017
3063
|
*/
|
|
3018
|
-
scroll(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3064
|
+
scroll(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
3019
3065
|
|
|
3020
3066
|
/**
|
|
3021
3067
|
* Trigger the "select" event on an element.
|
|
@@ -3028,7 +3074,7 @@ interface JQuery {
|
|
|
3028
3074
|
* @param handler A function to execute each time the event is triggered.
|
|
3029
3075
|
* @see {@link https://api.jquery.com/select/#select-handler}
|
|
3030
3076
|
*/
|
|
3031
|
-
select(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3077
|
+
select(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
3032
3078
|
/**
|
|
3033
3079
|
* Bind an event handler to the "select" JavaScript event.
|
|
3034
3080
|
*
|
|
@@ -3036,7 +3082,7 @@ interface JQuery {
|
|
|
3036
3082
|
* @param handler A function to execute each time the event is triggered.
|
|
3037
3083
|
* @see {@link https://api.jquery.com/select/#select-eventData-handler}
|
|
3038
3084
|
*/
|
|
3039
|
-
select(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3085
|
+
select(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
3040
3086
|
|
|
3041
3087
|
/**
|
|
3042
3088
|
* Trigger the "submit" event on an element.
|
|
@@ -3049,7 +3095,7 @@ interface JQuery {
|
|
|
3049
3095
|
* @param handler A function to execute each time the event is triggered.
|
|
3050
3096
|
* @see {@link https://api.jquery.com/submit/#submit-handler}
|
|
3051
3097
|
*/
|
|
3052
|
-
submit(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3098
|
+
submit(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
3053
3099
|
/**
|
|
3054
3100
|
* Bind an event handler to the "submit" JavaScript event
|
|
3055
3101
|
*
|
|
@@ -3057,7 +3103,7 @@ interface JQuery {
|
|
|
3057
3103
|
* @param handler A function to execute each time the event is triggered.
|
|
3058
3104
|
* @see {@link https://api.jquery.com/submit/#submit-eventData-handler}
|
|
3059
3105
|
*/
|
|
3060
|
-
submit(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3106
|
+
submit(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
3061
3107
|
|
|
3062
3108
|
/**
|
|
3063
3109
|
* Execute all handlers and behaviors attached to the matched elements for the given event type.
|
|
@@ -3101,7 +3147,7 @@ interface JQuery {
|
|
|
3101
3147
|
* @param handler The function that is to be no longer executed.
|
|
3102
3148
|
* @see {@link https://api.jquery.com/unbind/#unbind-eventType-handler}
|
|
3103
3149
|
*/
|
|
3104
|
-
unbind(eventType?: string, handler?: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3150
|
+
unbind(eventType?: string, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
3105
3151
|
/**
|
|
3106
3152
|
* Remove a previously-attached event handler from the elements.
|
|
3107
3153
|
*
|
|
@@ -3131,7 +3177,11 @@ interface JQuery {
|
|
|
3131
3177
|
* @param handler A function to execute at the time the event is triggered.
|
|
3132
3178
|
* @see {@link https://api.jquery.com/undelegate/#undelegate-selector-eventType}
|
|
3133
3179
|
*/
|
|
3134
|
-
undelegate(
|
|
3180
|
+
undelegate(
|
|
3181
|
+
selector: string,
|
|
3182
|
+
eventType: string,
|
|
3183
|
+
handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any,
|
|
3184
|
+
): JQuery;
|
|
3135
3185
|
/**
|
|
3136
3186
|
* Remove a handler from the event for all elements which match the current selector, based upon a specific set of root elements.
|
|
3137
3187
|
*
|
|
@@ -3154,7 +3204,7 @@ interface JQuery {
|
|
|
3154
3204
|
* @param handler A function to execute when the event is triggered.
|
|
3155
3205
|
* @see {@link https://api.jquery.com/unload/#unload-handler}
|
|
3156
3206
|
*/
|
|
3157
|
-
unload(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3207
|
+
unload(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
3158
3208
|
/**
|
|
3159
3209
|
* Bind an event handler to the "unload" JavaScript event. (DEPRECATED from v1.8)
|
|
3160
3210
|
*
|
|
@@ -3162,7 +3212,7 @@ interface JQuery {
|
|
|
3162
3212
|
* @param handler A function to execute when the event is triggered.
|
|
3163
3213
|
* @see {@link https://api.jquery.com/unload/#unload-eventData-handler}
|
|
3164
3214
|
*/
|
|
3165
|
-
unload(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3215
|
+
unload(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
3166
3216
|
|
|
3167
3217
|
/**
|
|
3168
3218
|
* The DOM node context originally passed to jQuery(); if none was passed then context will likely be the document. (DEPRECATED from v1.10)
|
|
@@ -3178,7 +3228,7 @@ interface JQuery {
|
|
|
3178
3228
|
* @param handler A function to execute when the event is triggered.
|
|
3179
3229
|
* @see {@link https://api.jquery.com/error/#error-handler}
|
|
3180
3230
|
*/
|
|
3181
|
-
error(handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3231
|
+
error(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
3182
3232
|
/**
|
|
3183
3233
|
* Bind an event handler to the "error" JavaScript event. (DEPRECATED from v1.8)
|
|
3184
3234
|
*
|
|
@@ -3186,7 +3236,7 @@ interface JQuery {
|
|
|
3186
3236
|
* @param handler A function to execute when the event is triggered.
|
|
3187
3237
|
* @see {@link https://api.jquery.com/error/#error-eventData-handler}
|
|
3188
3238
|
*/
|
|
3189
|
-
error(eventData: any, handler: (eventObject: JQueryEventObject) => any): JQuery;
|
|
3239
|
+
error(eventData: any, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery;
|
|
3190
3240
|
|
|
3191
3241
|
/**
|
|
3192
3242
|
* Add a collection of DOM elements onto the jQuery stack.
|
|
@@ -3219,7 +3269,7 @@ interface JQuery {
|
|
|
3219
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.
|
|
3220
3270
|
* @see {@link https://api.jquery.com/after/#after-function}
|
|
3221
3271
|
*/
|
|
3222
|
-
after(func: (index: number, html: string) => string | Element | JQuery): JQuery;
|
|
3272
|
+
after(func: (this: HTMLElement, index: number, html: string) => string | Element | JQuery): JQuery;
|
|
3223
3273
|
|
|
3224
3274
|
/**
|
|
3225
3275
|
* Insert content, specified by the parameter, to the end of each element in the set of matched elements.
|
|
@@ -3353,7 +3403,7 @@ interface JQuery {
|
|
|
3353
3403
|
* @param func A function that returns content with which to replace the set of matched elements.
|
|
3354
3404
|
* @see {@link https://api.jquery.com/replaceWith/#replaceWith-function}
|
|
3355
3405
|
*/
|
|
3356
|
-
replaceWith(func: () => Element | JQuery): JQuery;
|
|
3406
|
+
replaceWith(func: (this: HTMLElement) => Element | JQuery): JQuery;
|
|
3357
3407
|
|
|
3358
3408
|
/**
|
|
3359
3409
|
* Get the combined text contents of each element in the set of matched elements, including their descendants.
|
|
@@ -3401,7 +3451,7 @@ interface JQuery {
|
|
|
3401
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.
|
|
3402
3452
|
* @see {@link https://api.jquery.com/wrap/#wrap-function}
|
|
3403
3453
|
*/
|
|
3404
|
-
wrap(func: (index: number) => string | JQuery): JQuery;
|
|
3454
|
+
wrap(func: (this: HTMLElement, index: number) => string | JQuery): JQuery;
|
|
3405
3455
|
|
|
3406
3456
|
/**
|
|
3407
3457
|
* Wrap an HTML structure around all elements in the set of matched elements.
|
|
@@ -3416,7 +3466,7 @@ interface JQuery {
|
|
|
3416
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.
|
|
3417
3467
|
* @see {@link https://api.jquery.com/wrapAll/#wrapAll-function}
|
|
3418
3468
|
*/
|
|
3419
|
-
wrapAll(func: (index: number) => string): JQuery;
|
|
3469
|
+
wrapAll(func: (this: HTMLElement, index: number) => string): JQuery;
|
|
3420
3470
|
|
|
3421
3471
|
/**
|
|
3422
3472
|
* Wrap an HTML structure around the content of each element in the set of matched elements.
|
|
@@ -3431,7 +3481,7 @@ interface JQuery {
|
|
|
3431
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.
|
|
3432
3482
|
* @see {@link https://api.jquery.com/wrapInner/#wrapInner-function}
|
|
3433
3483
|
*/
|
|
3434
|
-
wrapInner(func: (index: number) => string): JQuery;
|
|
3484
|
+
wrapInner(func: (this: HTMLElement, index: number) => string): JQuery;
|
|
3435
3485
|
|
|
3436
3486
|
/**
|
|
3437
3487
|
* Iterate over a jQuery object, executing a function for each matched element.
|
|
@@ -3439,8 +3489,7 @@ interface JQuery {
|
|
|
3439
3489
|
* @param func A function to execute for each matched element. Can stop the loop by returning false.
|
|
3440
3490
|
* @see {@link https://api.jquery.com/each/}
|
|
3441
3491
|
*/
|
|
3442
|
-
|
|
3443
|
-
each(func: (index: number, elem: Element) => boolean | void): JQuery;
|
|
3492
|
+
each(func: (this: HTMLElement, index: number, elem: Element) => boolean | undefined): JQuery;
|
|
3444
3493
|
|
|
3445
3494
|
/**
|
|
3446
3495
|
* Retrieve one of the elements matched by the jQuery object.
|
|
@@ -3592,7 +3641,7 @@ interface JQuery {
|
|
|
3592
3641
|
* @param func A function used as a test for each element in the set. this is the current DOM element.
|
|
3593
3642
|
* @see {@link https://api.jquery.com/filter/#filter-function}
|
|
3594
3643
|
*/
|
|
3595
|
-
filter(func: (index: number, element: Element) => boolean): JQuery;
|
|
3644
|
+
filter(func: (this: HTMLElement, index: number, element: Element) => boolean): JQuery;
|
|
3596
3645
|
/**
|
|
3597
3646
|
* Reduce the set of matched elements to those that match the selector or pass the function's test.
|
|
3598
3647
|
*
|
|
@@ -3651,7 +3700,7 @@ interface JQuery {
|
|
|
3651
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.
|
|
3652
3701
|
* @see {@link https://api.jquery.com/is/#is-function}
|
|
3653
3702
|
*/
|
|
3654
|
-
is(func: (index: number, element: Element) => boolean): boolean;
|
|
3703
|
+
is(func: (this: HTMLElement, index: number, element: Element) => boolean): boolean;
|
|
3655
3704
|
/**
|
|
3656
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.
|
|
3657
3706
|
*
|
|
@@ -3679,7 +3728,7 @@ interface JQuery {
|
|
|
3679
3728
|
* @param callback A function object that will be invoked for each element in the current set.
|
|
3680
3729
|
* @see {@link https://api.jquery.com/map/}
|
|
3681
3730
|
*/
|
|
3682
|
-
map(callback: (index: number, domElement: Element) => any): JQuery;
|
|
3731
|
+
map(callback: (this: HTMLElement, index: number, domElement: Element) => any): JQuery;
|
|
3683
3732
|
|
|
3684
3733
|
/**
|
|
3685
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.
|
|
@@ -3869,14 +3918,14 @@ interface JQuery {
|
|
|
3869
3918
|
* @param newQueue An array of functions to replace the current queue contents.
|
|
3870
3919
|
* @see {@link https://api.jquery.com/queue/#queue-queueName-newQueue}
|
|
3871
3920
|
*/
|
|
3872
|
-
queue(newQueue:
|
|
3921
|
+
queue(newQueue: BoundFunction[]): JQuery;
|
|
3873
3922
|
/**
|
|
3874
3923
|
* Manipulate the queue of functions to be executed, once for each matched element.
|
|
3875
3924
|
*
|
|
3876
3925
|
* @param callback The new function to add to the queue, with a function to call that will dequeue the next item.
|
|
3877
3926
|
* @see {@link https://api.jquery.com/queue/#queue-queueName-callback}
|
|
3878
3927
|
*/
|
|
3879
|
-
queue(callback:
|
|
3928
|
+
queue(callback: BoundFunction): JQuery;
|
|
3880
3929
|
/**
|
|
3881
3930
|
* Manipulate the queue of functions to be executed, once for each matched element.
|
|
3882
3931
|
*
|
|
@@ -3884,7 +3933,7 @@ interface JQuery {
|
|
|
3884
3933
|
* @param newQueue An array of functions to replace the current queue contents.
|
|
3885
3934
|
* @see {@link https://api.jquery.com/queue/#queue-queueName-newQueue}
|
|
3886
3935
|
*/
|
|
3887
|
-
queue(queueName: string, newQueue:
|
|
3936
|
+
queue(queueName: string, newQueue: BoundFunction[]): JQuery;
|
|
3888
3937
|
/**
|
|
3889
3938
|
* Manipulate the queue of functions to be executed, once for each matched element.
|
|
3890
3939
|
*
|
|
@@ -3892,7 +3941,7 @@ interface JQuery {
|
|
|
3892
3941
|
* @param callback The new function to add to the queue, with a function to call that will dequeue the next item.
|
|
3893
3942
|
* @see {@link https://api.jquery.com/queue/#queue-queueName-callback}
|
|
3894
3943
|
*/
|
|
3895
|
-
queue(queueName: string, callback:
|
|
3944
|
+
queue(queueName: string, callback: BoundFunction): JQuery;
|
|
3896
3945
|
|
|
3897
3946
|
/**
|
|
3898
3947
|
* Merge the contents of an object onto the jQuery prototype to provide new jQuery instance methods.
|
|
@@ -3900,7 +3949,7 @@ interface JQuery {
|
|
|
3900
3949
|
* @param object An object to merge onto the jQuery prototype.
|
|
3901
3950
|
* @see {@link https://api.jquery.com/jQuery.fn.extend/#jQuery-fn-extend-object}
|
|
3902
3951
|
*/
|
|
3903
|
-
extend(object: { [method: string]: (...args: any[]) => any }): JQuery;
|
|
3952
|
+
extend(object: { [method: string]: (this: JQuery, ...args: any[]) => any }): JQuery;
|
|
3904
3953
|
}
|
|
3905
3954
|
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
3906
3955
|
declare module "jquery" {
|