@types/jquery 3.5.28 → 3.5.29
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/JQuery.d.ts +10 -0
- jquery/JQueryStatic.d.ts +3 -0
- jquery/README.md +1 -1
- jquery/misc.d.ts +7 -0
- jquery/package.json +2 -2
jquery/JQuery.d.ts
CHANGED
|
@@ -553,6 +553,7 @@ $( document ).ajaxComplete(function( event, request, settings ) {
|
|
|
553
553
|
event: JQuery.TriggeredEvent<Document, undefined, Document, Document>,
|
|
554
554
|
jqXHR: JQuery.jqXHR,
|
|
555
555
|
ajaxOptions: JQuery.AjaxSettings,
|
|
556
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
556
557
|
) => void | false,
|
|
557
558
|
): this;
|
|
558
559
|
/**
|
|
@@ -574,6 +575,7 @@ $( document ).ajaxError(function( event, request, settings ) {
|
|
|
574
575
|
jqXHR: JQuery.jqXHR,
|
|
575
576
|
ajaxSettings: JQuery.AjaxSettings,
|
|
576
577
|
thrownError: string,
|
|
578
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
577
579
|
) => void | false,
|
|
578
580
|
): this;
|
|
579
581
|
/**
|
|
@@ -594,6 +596,7 @@ $( document ).ajaxSend(function( event, request, settings ) {
|
|
|
594
596
|
event: JQuery.TriggeredEvent<Document, undefined, Document, Document>,
|
|
595
597
|
jqXHR: JQuery.jqXHR,
|
|
596
598
|
ajaxOptions: JQuery.AjaxSettings,
|
|
599
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
597
600
|
) => void | false,
|
|
598
601
|
): this;
|
|
599
602
|
/**
|
|
@@ -608,6 +611,7 @@ $( document ).ajaxStart(function() {
|
|
|
608
611
|
});
|
|
609
612
|
```
|
|
610
613
|
*/
|
|
614
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
611
615
|
ajaxStart(handler: (this: Document) => void | false): this;
|
|
612
616
|
/**
|
|
613
617
|
* Register a handler to be called when all Ajax requests have completed. This is an Ajax Event.
|
|
@@ -621,6 +625,7 @@ $( document ).ajaxStop(function() {
|
|
|
621
625
|
});
|
|
622
626
|
```
|
|
623
627
|
*/
|
|
628
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
624
629
|
ajaxStop(handler: (this: Document) => void | false): this;
|
|
625
630
|
/**
|
|
626
631
|
* Attach a function to be executed whenever an Ajax request completes successfully. This is an Ajax Event.
|
|
@@ -641,6 +646,7 @@ $( document ).ajaxSuccess(function( event, request, settings ) {
|
|
|
641
646
|
jqXHR: JQuery.jqXHR,
|
|
642
647
|
ajaxOptions: JQuery.AjaxSettings,
|
|
643
648
|
data: JQuery.PlainObject,
|
|
649
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
644
650
|
) => void | false,
|
|
645
651
|
): this;
|
|
646
652
|
/**
|
|
@@ -1155,6 +1161,7 @@ $( "img" ).attr( "src", function() {
|
|
|
1155
1161
|
| string
|
|
1156
1162
|
| number
|
|
1157
1163
|
| null
|
|
1164
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
1158
1165
|
| ((this: TElement, index: number, attr: string) => string | number | void | undefined),
|
|
1159
1166
|
): this;
|
|
1160
1167
|
/**
|
|
@@ -2350,6 +2357,7 @@ $( "span" ).on( "click", function() {
|
|
|
2350
2357
|
value_function:
|
|
2351
2358
|
| string
|
|
2352
2359
|
| number
|
|
2360
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
2353
2361
|
| ((this: TElement, index: number, value: string) => string | number | void | undefined),
|
|
2354
2362
|
): this;
|
|
2355
2363
|
/**
|
|
@@ -2436,6 +2444,7 @@ $( "div" ).on( "click", function() {
|
|
|
2436
2444
|
*/
|
|
2437
2445
|
css(
|
|
2438
2446
|
properties: JQuery.PlainObject<
|
|
2447
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
2439
2448
|
string | number | ((this: TElement, index: number, value: string) => string | number | void | undefined)
|
|
2440
2449
|
>,
|
|
2441
2450
|
): this;
|
|
@@ -3204,6 +3213,7 @@ $( "button" ).click(function() {
|
|
|
3204
3213
|
</html>
|
|
3205
3214
|
```
|
|
3206
3215
|
*/
|
|
3216
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
3207
3217
|
each(funсtion: (this: TElement, index: number, element: TElement) => void | false): this;
|
|
3208
3218
|
/**
|
|
3209
3219
|
* Remove all child nodes of the set of matched elements from the DOM.
|
jquery/JQueryStatic.d.ts
CHANGED
|
@@ -305,6 +305,7 @@ $.ajax({
|
|
|
305
305
|
options: JQuery.AjaxSettings,
|
|
306
306
|
originalOptions: JQuery.AjaxSettings,
|
|
307
307
|
jqXHR: JQuery.jqXHR,
|
|
308
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
308
309
|
) => string | void,
|
|
309
310
|
): void;
|
|
310
311
|
/**
|
|
@@ -318,6 +319,7 @@ $.ajax({
|
|
|
318
319
|
options: JQuery.AjaxSettings,
|
|
319
320
|
originalOptions: JQuery.AjaxSettings,
|
|
320
321
|
jqXHR: JQuery.jqXHR,
|
|
322
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
321
323
|
) => string | void,
|
|
322
324
|
): void;
|
|
323
325
|
/**
|
|
@@ -349,6 +351,7 @@ $.ajax({ data: myData });
|
|
|
349
351
|
options: JQuery.AjaxSettings,
|
|
350
352
|
originalOptions: JQuery.AjaxSettings,
|
|
351
353
|
jqXHR: JQuery.jqXHR,
|
|
354
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
352
355
|
) => JQuery.Transport | void,
|
|
353
356
|
): void;
|
|
354
357
|
/**
|
jquery/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for jquery (https://jquery.com).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Wed, 22 Nov 2023 00:24:48 GMT
|
|
12
12
|
* Dependencies: [@types/sizzle](https://npmjs.com/package/@types/sizzle)
|
|
13
13
|
|
|
14
14
|
# Credits
|
jquery/misc.d.ts
CHANGED
|
@@ -95,6 +95,7 @@ declare namespace JQuery {
|
|
|
95
95
|
/**
|
|
96
96
|
* 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.
|
|
97
97
|
*/
|
|
98
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
98
99
|
beforeSend?(this: TContext, jqXHR: jqXHR, settings: this): false | void;
|
|
99
100
|
/**
|
|
100
101
|
* 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.
|
|
@@ -4241,6 +4242,7 @@ $.get( "test.php" )
|
|
|
4241
4242
|
element: TElement,
|
|
4242
4243
|
props: PlainObject,
|
|
4243
4244
|
opts: EffectsOptions<TElement>,
|
|
4245
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
4244
4246
|
) => Animation<TElement> | _Falsy | void,
|
|
4245
4247
|
prepend?: boolean,
|
|
4246
4248
|
): void;
|
|
@@ -7187,6 +7189,7 @@ $( "#checkMetaKey" ).click(function( event ) {
|
|
|
7187
7189
|
* This hook can perform whatever processing it desires, including attaching its own event handlers to the element or to other elements and recording setup information on the element using the `jQuery.data()` method. If the setup hook wants jQuery to add a browser event (via `addEventListener` or `attachEvent`, depending on browser) it should return `false`. In all other cases, jQuery will not add the browser event, but will continue all its other bookkeeping for the event. This would be appropriate, for example, if the event was never fired by the browser but invoked by `.trigger()`. To attach the jQuery event handler in the setup hook, use the `eventHandle` argument.
|
|
7188
7190
|
* @see \`{@link https://learn.jquery.com/events/event-extensions/#setup-function-data-object-namespaces-eventhandle-function }\`
|
|
7189
7191
|
*/
|
|
7192
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
7190
7193
|
setup(this: TTarget, data: TData, namespaces: string, eventHandle: EventHandler<TTarget, TData>): void | false;
|
|
7191
7194
|
} | {
|
|
7192
7195
|
/**
|
|
@@ -7195,6 +7198,7 @@ $( "#checkMetaKey" ).click(function( event ) {
|
|
|
7195
7198
|
* If the setup hook attached event handlers or added data to an element through a mechanism such as `jQuery.data()`, the teardown hook should reverse the process and remove them. jQuery will generally remove the data and events when an element is totally removed from the document, but failing to remove data or events on teardown will cause a memory leak if the element stays in the document.
|
|
7196
7199
|
* @see \`{@link https://learn.jquery.com/events/event-extensions/#teardown-function }\`
|
|
7197
7200
|
*/
|
|
7201
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
7198
7202
|
teardown(this: TTarget): void | false;
|
|
7199
7203
|
} | {
|
|
7200
7204
|
/**
|
|
@@ -7215,12 +7219,14 @@ $( "#checkMetaKey" ).click(function( event ) {
|
|
|
7215
7219
|
* The trigger hook is called early in the process of triggering an event, just after the `jQuery.Event` object is constructed and before any handlers have been called. It can process the triggered event in any way, for example by calling `event.stopPropagation()` or `event.preventDefault()` before returning. If the hook returns `false`, jQuery does not perform any further event triggering actions and returns immediately. Otherwise, it performs the normal trigger processing, calling any event handlers for the element and bubbling the event (unless propagation is stopped in advance or `noBubble` was specified for the special event) to call event handlers attached to parent elements.
|
|
7216
7220
|
* @see \`{@link https://learn.jquery.com/events/event-extensions/#trigger-function-event-jquery-event-data-object }\`
|
|
7217
7221
|
*/
|
|
7222
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
7218
7223
|
trigger(this: TTarget, event: Event, data: TData): void | false;
|
|
7219
7224
|
} | {
|
|
7220
7225
|
/**
|
|
7221
7226
|
* When the `.trigger()` method finishes running all the event handlers for an event, it also looks for and runs any method on the target object by the same name unless of the handlers called `event.preventDefault()`. So, `.trigger( "submit" )` will execute the `submit()` method on the element if one exists. When a `_default` hook is specified, the hook is called just prior to checking for and executing the element's default method. If this hook returns the value `false` the element's default method will be called; otherwise it is not.
|
|
7222
7227
|
* @see \`{@link https://learn.jquery.com/events/event-extensions/#_default-function-event-jquery-event-data-object }\`
|
|
7223
7228
|
*/
|
|
7229
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
7224
7230
|
_default(event: TriggeredEvent<TTarget, TData>, data: TData): void | false;
|
|
7225
7231
|
} | {
|
|
7226
7232
|
/**
|
|
@@ -7235,6 +7241,7 @@ $( "#checkMetaKey" ).click(function( event ) {
|
|
|
7235
7241
|
...data: TData[]
|
|
7236
7242
|
): void;
|
|
7237
7243
|
} | {
|
|
7244
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
7238
7245
|
preDispatch(this: TTarget, event: Event): false | void;
|
|
7239
7246
|
} | {
|
|
7240
7247
|
postDispatch(this: TTarget, event: Event): void;
|
jquery/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/jquery",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.29",
|
|
4
4
|
"description": "TypeScript definitions for jquery",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery",
|
|
6
6
|
"license": "MIT",
|
|
@@ -127,6 +127,6 @@
|
|
|
127
127
|
"dependencies": {
|
|
128
128
|
"@types/sizzle": "*"
|
|
129
129
|
},
|
|
130
|
-
"typesPublisherContentHash": "
|
|
130
|
+
"typesPublisherContentHash": "c3055dbf38935d6cab1eb0b3a8774efc077599ff8bad2539e061404145a6c310",
|
|
131
131
|
"typeScriptVersion": "4.5"
|
|
132
132
|
}
|