@types/jquery 3.3.29 → 3.3.33
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/JQueryStatic.d.ts +2 -2
- jquery/README.md +6 -6
- jquery/misc.d.ts +109 -0
- jquery/package.json +6 -5
jquery/JQueryStatic.d.ts
CHANGED
|
@@ -102,7 +102,7 @@ $( "<div/>", {
|
|
|
102
102
|
/**
|
|
103
103
|
* Accepts a string containing a CSS selector which is then used to match a set of elements.
|
|
104
104
|
* @param selector A string containing a selector expression
|
|
105
|
-
* @param context A DOM Element, Document, or jQuery to use as context
|
|
105
|
+
* @param context A DOM Element, Document, Selector or jQuery to use as context
|
|
106
106
|
* @see \`{@link https://api.jquery.com/jQuery/ }\`
|
|
107
107
|
* @since 1.0
|
|
108
108
|
* @example ````Find all p elements that are children of a div element and apply a border to them.
|
|
@@ -137,7 +137,7 @@ $( "div", xml.responseXML );
|
|
|
137
137
|
|
|
138
138
|
*/
|
|
139
139
|
// tslint:disable-next-line:no-unnecessary-generics
|
|
140
|
-
<TElement extends Element = HTMLElement>(selector: JQuery.Selector, context?: Element | Document | JQuery): JQuery<TElement>;
|
|
140
|
+
<TElement extends Element = HTMLElement>(selector: JQuery.Selector, context?: Element | Document | JQuery | JQuery.Selector): JQuery<TElement>;
|
|
141
141
|
/**
|
|
142
142
|
* Return a collection of matched elements either found in the DOM based on passed argument(s) or created by passing an HTML string.
|
|
143
143
|
* @param element A DOM element to wrap in a jQuery object.
|
jquery/README.md
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
This package contains type definitions for jquery (https://jquery.com).
|
|
6
6
|
|
|
7
7
|
# Details
|
|
8
|
-
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery
|
|
8
|
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery.
|
|
9
9
|
|
|
10
|
-
Additional Details
|
|
11
|
-
* Last updated:
|
|
12
|
-
* Dependencies: @types/sizzle
|
|
13
|
-
* Global values:
|
|
10
|
+
### Additional Details
|
|
11
|
+
* Last updated: Sun, 23 Feb 2020 09:23:45 GMT
|
|
12
|
+
* Dependencies: [@types/sizzle](https://npmjs.com/package/@types/sizzle)
|
|
13
|
+
* Global values: `$`, `Symbol`, `jQuery`
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
|
-
These definitions were written by Leonard Thieu
|
|
16
|
+
These definitions were written by [Leonard Thieu](https://github.com/leonard-thieu), [Boris Yankov](https://github.com/borisyankov), [Christian Hoffmeister](https://github.com/choffmeister), [Steve Fenton](https://github.com/Steve-Fenton), [Diullei Gomes](https://github.com/Diullei), [Tass Iliopoulos](https://github.com/tasoili), [Jason Swearingen](https://github.com/jasons-novaleaf), [Sean Hill](https://github.com/seanski), [Guus Goossens](https://github.com/Guuz), [Kelly Summerlin](https://github.com/ksummerlin), [Basarat Ali Syed](https://github.com/basarat), [Nicholas Wolverson](https://github.com/nwolverson), [Derek Cicerone](https://github.com/derekcicerone), [Andrew Gaspar](https://github.com/AndrewGaspar), [Seikichi Kondo](https://github.com/seikichi), [Benjamin Jackman](https://github.com/benjaminjackman), [Poul Sorensen](https://github.com/s093294), [Josh Strobl](https://github.com/JoshStrobl), [John Reilly](https://github.com/johnnyreilly), [Dick van den Brink](https://github.com/DickvdBrink), [Thomas Schulz](https://github.com/King2500), and [Terry Mun](https://github.com/terrymun).
|
jquery/misc.d.ts
CHANGED
|
@@ -141,6 +141,16 @@ declare namespace JQuery {
|
|
|
141
141
|
* multiple, space-separated values: As of jQuery 1.5, jQuery can convert a dataType from what it received in the Content-Type header to what you require. For example, if you want a text response to be treated as XML, use "text xml" for the dataType. You can also make a JSONP request, have it received as text, and interpreted by jQuery as XML: "jsonp text xml". Similarly, a shorthand string such as "jsonp xml" will first attempt to convert from jsonp to xml, and, failing that, convert from jsonp to text, and then from text to xml.
|
|
142
142
|
*/
|
|
143
143
|
dataType?: 'xml' | 'html' | 'script' | 'json' | 'jsonp' | 'text' | string;
|
|
144
|
+
/**
|
|
145
|
+
* The MIME type of content that is used to submit the form to the server. Possible values are:
|
|
146
|
+
*
|
|
147
|
+
* "application/x-www-form-urlencoded": The initial default type.
|
|
148
|
+
*
|
|
149
|
+
* "multipart/form-data": The type that allows file <input> element(s) to upload file data.
|
|
150
|
+
*
|
|
151
|
+
* "text/plain": A type introduced in HTML5.
|
|
152
|
+
*/
|
|
153
|
+
enctype?: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain';
|
|
144
154
|
/**
|
|
145
155
|
* 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.
|
|
146
156
|
*/
|
|
@@ -677,6 +687,7 @@ declare namespace JQuery {
|
|
|
677
687
|
'setRequestHeader' | 'status' | 'statusText'>,
|
|
678
688
|
Partial<Pick<XMLHttpRequest, 'responseXML'>> {
|
|
679
689
|
responseJSON?: any;
|
|
690
|
+
abort(statusText?: string): void;
|
|
680
691
|
|
|
681
692
|
/**
|
|
682
693
|
* Determine the current state of a Deferred object.
|
|
@@ -5456,6 +5467,92 @@ $( "#checkMetaKey" ).click(function( event ) {
|
|
|
5456
5467
|
type: 'mouseup';
|
|
5457
5468
|
}
|
|
5458
5469
|
|
|
5470
|
+
// region DragEvent
|
|
5471
|
+
// #region DragEvent
|
|
5472
|
+
|
|
5473
|
+
interface DragEventBase<
|
|
5474
|
+
TDelegateTarget = any,
|
|
5475
|
+
TData = any,
|
|
5476
|
+
TCurrentTarget = any,
|
|
5477
|
+
TTarget = any
|
|
5478
|
+
> extends UIEventBase<TDelegateTarget, TData, TCurrentTarget, TTarget> {
|
|
5479
|
+
originalEvent?: _DragEvent;
|
|
5480
|
+
}
|
|
5481
|
+
|
|
5482
|
+
interface DragEvent<
|
|
5483
|
+
TDelegateTarget = any,
|
|
5484
|
+
TData = any,
|
|
5485
|
+
TCurrentTarget = any,
|
|
5486
|
+
TTarget = any
|
|
5487
|
+
> extends DragEventBase<TDelegateTarget, TData, TCurrentTarget, TTarget> {
|
|
5488
|
+
type: 'drag';
|
|
5489
|
+
}
|
|
5490
|
+
|
|
5491
|
+
interface DragEndEvent<
|
|
5492
|
+
TDelegateTarget = any,
|
|
5493
|
+
TData = any,
|
|
5494
|
+
TCurrentTarget = any,
|
|
5495
|
+
TTarget = any
|
|
5496
|
+
> extends DragEventBase<TDelegateTarget, TData, TCurrentTarget, TTarget> {
|
|
5497
|
+
type: 'dragend';
|
|
5498
|
+
}
|
|
5499
|
+
|
|
5500
|
+
interface DragEnterEvent<
|
|
5501
|
+
TDelegateTarget = any,
|
|
5502
|
+
TData = any,
|
|
5503
|
+
TCurrentTarget = any,
|
|
5504
|
+
TTarget = any
|
|
5505
|
+
> extends DragEventBase<TDelegateTarget, TData, TCurrentTarget, TTarget> {
|
|
5506
|
+
type: 'dragenter';
|
|
5507
|
+
}
|
|
5508
|
+
|
|
5509
|
+
interface DragExitEvent<
|
|
5510
|
+
TDelegateTarget = any,
|
|
5511
|
+
TData = any,
|
|
5512
|
+
TCurrentTarget = any,
|
|
5513
|
+
TTarget = any
|
|
5514
|
+
> extends DragEventBase<TDelegateTarget, TData, TCurrentTarget, TTarget> {
|
|
5515
|
+
type: 'dragexit';
|
|
5516
|
+
}
|
|
5517
|
+
|
|
5518
|
+
interface DragLeaveEvent<
|
|
5519
|
+
TDelegateTarget = any,
|
|
5520
|
+
TData = any,
|
|
5521
|
+
TCurrentTarget = any,
|
|
5522
|
+
TTarget = any
|
|
5523
|
+
> extends DragEventBase<TDelegateTarget, TData, TCurrentTarget, TTarget> {
|
|
5524
|
+
type: 'dragleave';
|
|
5525
|
+
}
|
|
5526
|
+
|
|
5527
|
+
interface DragOverEvent<
|
|
5528
|
+
TDelegateTarget = any,
|
|
5529
|
+
TData = any,
|
|
5530
|
+
TCurrentTarget = any,
|
|
5531
|
+
TTarget = any
|
|
5532
|
+
> extends DragEventBase<TDelegateTarget, TData, TCurrentTarget, TTarget> {
|
|
5533
|
+
type: 'dragover';
|
|
5534
|
+
}
|
|
5535
|
+
|
|
5536
|
+
interface DragStartEvent<
|
|
5537
|
+
TDelegateTarget = any,
|
|
5538
|
+
TData = any,
|
|
5539
|
+
TCurrentTarget = any,
|
|
5540
|
+
TTarget = any
|
|
5541
|
+
> extends DragEventBase<TDelegateTarget, TData, TCurrentTarget, TTarget> {
|
|
5542
|
+
type: 'dragstart';
|
|
5543
|
+
}
|
|
5544
|
+
|
|
5545
|
+
interface DropEvent<
|
|
5546
|
+
TDelegateTarget = any,
|
|
5547
|
+
TData = any,
|
|
5548
|
+
TCurrentTarget = any,
|
|
5549
|
+
TTarget = any
|
|
5550
|
+
> extends DragEventBase<TDelegateTarget, TData, TCurrentTarget, TTarget> {
|
|
5551
|
+
type: 'drop';
|
|
5552
|
+
}
|
|
5553
|
+
|
|
5554
|
+
// #endregion
|
|
5555
|
+
|
|
5459
5556
|
// #endregion
|
|
5460
5557
|
|
|
5461
5558
|
// region KeyboardEvent
|
|
@@ -6284,6 +6381,17 @@ $( "#checkMetaKey" ).click(function( event ) {
|
|
|
6284
6381
|
mouseover: MouseOverEvent<TDelegateTarget, TData, TCurrentTarget, TTarget>;
|
|
6285
6382
|
mouseup: MouseUpEvent<TDelegateTarget, TData, TCurrentTarget, TTarget>;
|
|
6286
6383
|
|
|
6384
|
+
// DragEvent
|
|
6385
|
+
|
|
6386
|
+
drag: DragEvent<TDelegateTarget, TData, TCurrentTarget, TTarget>;
|
|
6387
|
+
dragend: DragEndEvent<TDelegateTarget, TData, TCurrentTarget, TTarget>;
|
|
6388
|
+
dragenter: DragEnterEvent<TDelegateTarget, TData, TCurrentTarget, TTarget>;
|
|
6389
|
+
dragexit: DragExitEvent<TDelegateTarget, TData, TCurrentTarget, TTarget>;
|
|
6390
|
+
dragleave: DragLeaveEvent<TDelegateTarget, TData, TCurrentTarget, TTarget>;
|
|
6391
|
+
dragover: DragOverEvent<TDelegateTarget, TData, TCurrentTarget, TTarget>;
|
|
6392
|
+
dragstart: DragStartEvent<TDelegateTarget, TData, TCurrentTarget, TTarget>;
|
|
6393
|
+
drop: DropEvent<TDelegateTarget, TData, TCurrentTarget, TTarget>;
|
|
6394
|
+
|
|
6287
6395
|
// KeyboardEvent
|
|
6288
6396
|
|
|
6289
6397
|
keydown: KeyDownEvent<TDelegateTarget, TData, TCurrentTarget, TTarget>;
|
|
@@ -6538,6 +6646,7 @@ declare const $: JQueryStatic;
|
|
|
6538
6646
|
type _Event = Event;
|
|
6539
6647
|
type _UIEvent = UIEvent;
|
|
6540
6648
|
type _MouseEvent = MouseEvent;
|
|
6649
|
+
type _DragEvent = DragEvent;
|
|
6541
6650
|
type _KeyboardEvent = KeyboardEvent;
|
|
6542
6651
|
type _TouchEvent = TouchEvent;
|
|
6543
6652
|
type _FocusEvent = FocusEvent;
|
jquery/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/jquery",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.33",
|
|
4
4
|
"description": "TypeScript definitions for jquery",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -116,15 +116,16 @@
|
|
|
116
116
|
}
|
|
117
117
|
],
|
|
118
118
|
"main": "",
|
|
119
|
-
"types": "index",
|
|
119
|
+
"types": "index.d.ts",
|
|
120
120
|
"repository": {
|
|
121
121
|
"type": "git",
|
|
122
|
-
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
|
|
122
|
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
|
123
|
+
"directory": "types/jquery"
|
|
123
124
|
},
|
|
124
125
|
"scripts": {},
|
|
125
126
|
"dependencies": {
|
|
126
127
|
"@types/sizzle": "*"
|
|
127
128
|
},
|
|
128
|
-
"typesPublisherContentHash": "
|
|
129
|
-
"typeScriptVersion": "2.
|
|
129
|
+
"typesPublisherContentHash": "bd65395892a0c24b0a14e5429f80405a7907bf04253211eb64dd3493d0b242db",
|
|
130
|
+
"typeScriptVersion": "2.8"
|
|
130
131
|
}
|