@types/jquery 3.3.28 → 3.3.32

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 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: Tue, 18 Dec 2018 21:15:12 GMT
12
- * Dependencies: @types/sizzle
13
- * Global values: $, Symbol, jQuery
10
+ ### Additional Details
11
+ * Last updated: Tue, 04 Feb 2020 19:23:17 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 <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>, Terry Mun <https://github.com/terrymun>.
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/legacy.d.ts CHANGED
@@ -167,9 +167,12 @@ interface JQueryMouseEventObject extends JQueryInputEventObject {
167
167
  * @deprecated ​ Deprecated. Use \`{@link JQuery.Event }\`.
168
168
  */
169
169
  interface JQueryKeyEventObject extends JQueryInputEventObject {
170
- char: any;
170
+ /** @deprecated */
171
+ char: string;
172
+ /** @deprecated */
171
173
  charCode: number;
172
- key: any;
174
+ key: string;
175
+ /** @deprecated */
173
176
  keyCode: number;
174
177
  }
175
178
  /**
jquery/misc.d.ts CHANGED
@@ -677,6 +677,7 @@ declare namespace JQuery {
677
677
  'setRequestHeader' | 'status' | 'statusText'>,
678
678
  Partial<Pick<XMLHttpRequest, 'responseXML'>> {
679
679
  responseJSON?: any;
680
+ abort(statusText?: string): void;
680
681
 
681
682
  /**
682
683
  * Determine the current state of a Deferred object.
@@ -5456,6 +5457,92 @@ $( "#checkMetaKey" ).click(function( event ) {
5456
5457
  type: 'mouseup';
5457
5458
  }
5458
5459
 
5460
+ // region DragEvent
5461
+ // #region DragEvent
5462
+
5463
+ interface DragEventBase<
5464
+ TDelegateTarget = any,
5465
+ TData = any,
5466
+ TCurrentTarget = any,
5467
+ TTarget = any
5468
+ > extends UIEventBase<TDelegateTarget, TData, TCurrentTarget, TTarget> {
5469
+ originalEvent?: _DragEvent;
5470
+ }
5471
+
5472
+ interface DragEvent<
5473
+ TDelegateTarget = any,
5474
+ TData = any,
5475
+ TCurrentTarget = any,
5476
+ TTarget = any
5477
+ > extends DragEventBase<TDelegateTarget, TData, TCurrentTarget, TTarget> {
5478
+ type: 'drag';
5479
+ }
5480
+
5481
+ interface DragEndEvent<
5482
+ TDelegateTarget = any,
5483
+ TData = any,
5484
+ TCurrentTarget = any,
5485
+ TTarget = any
5486
+ > extends DragEventBase<TDelegateTarget, TData, TCurrentTarget, TTarget> {
5487
+ type: 'dragend';
5488
+ }
5489
+
5490
+ interface DragEnterEvent<
5491
+ TDelegateTarget = any,
5492
+ TData = any,
5493
+ TCurrentTarget = any,
5494
+ TTarget = any
5495
+ > extends DragEventBase<TDelegateTarget, TData, TCurrentTarget, TTarget> {
5496
+ type: 'dragenter';
5497
+ }
5498
+
5499
+ interface DragExitEvent<
5500
+ TDelegateTarget = any,
5501
+ TData = any,
5502
+ TCurrentTarget = any,
5503
+ TTarget = any
5504
+ > extends DragEventBase<TDelegateTarget, TData, TCurrentTarget, TTarget> {
5505
+ type: 'dragexit';
5506
+ }
5507
+
5508
+ interface DragLeaveEvent<
5509
+ TDelegateTarget = any,
5510
+ TData = any,
5511
+ TCurrentTarget = any,
5512
+ TTarget = any
5513
+ > extends DragEventBase<TDelegateTarget, TData, TCurrentTarget, TTarget> {
5514
+ type: 'dragleave';
5515
+ }
5516
+
5517
+ interface DragOverEvent<
5518
+ TDelegateTarget = any,
5519
+ TData = any,
5520
+ TCurrentTarget = any,
5521
+ TTarget = any
5522
+ > extends DragEventBase<TDelegateTarget, TData, TCurrentTarget, TTarget> {
5523
+ type: 'dragover';
5524
+ }
5525
+
5526
+ interface DragStartEvent<
5527
+ TDelegateTarget = any,
5528
+ TData = any,
5529
+ TCurrentTarget = any,
5530
+ TTarget = any
5531
+ > extends DragEventBase<TDelegateTarget, TData, TCurrentTarget, TTarget> {
5532
+ type: 'dragstart';
5533
+ }
5534
+
5535
+ interface DropEvent<
5536
+ TDelegateTarget = any,
5537
+ TData = any,
5538
+ TCurrentTarget = any,
5539
+ TTarget = any
5540
+ > extends DragEventBase<TDelegateTarget, TData, TCurrentTarget, TTarget> {
5541
+ type: 'drop';
5542
+ }
5543
+
5544
+ // #endregion
5545
+
5459
5546
  // #endregion
5460
5547
 
5461
5548
  // region KeyboardEvent
@@ -6284,6 +6371,17 @@ $( "#checkMetaKey" ).click(function( event ) {
6284
6371
  mouseover: MouseOverEvent<TDelegateTarget, TData, TCurrentTarget, TTarget>;
6285
6372
  mouseup: MouseUpEvent<TDelegateTarget, TData, TCurrentTarget, TTarget>;
6286
6373
 
6374
+ // DragEvent
6375
+
6376
+ drag: DragEvent<TDelegateTarget, TData, TCurrentTarget, TTarget>;
6377
+ dragend: DragEndEvent<TDelegateTarget, TData, TCurrentTarget, TTarget>;
6378
+ dragenter: DragEnterEvent<TDelegateTarget, TData, TCurrentTarget, TTarget>;
6379
+ dragexit: DragExitEvent<TDelegateTarget, TData, TCurrentTarget, TTarget>;
6380
+ dragleave: DragLeaveEvent<TDelegateTarget, TData, TCurrentTarget, TTarget>;
6381
+ dragover: DragOverEvent<TDelegateTarget, TData, TCurrentTarget, TTarget>;
6382
+ dragstart: DragStartEvent<TDelegateTarget, TData, TCurrentTarget, TTarget>;
6383
+ drop: DropEvent<TDelegateTarget, TData, TCurrentTarget, TTarget>;
6384
+
6287
6385
  // KeyboardEvent
6288
6386
 
6289
6387
  keydown: KeyDownEvent<TDelegateTarget, TData, TCurrentTarget, TTarget>;
@@ -6538,6 +6636,7 @@ declare const $: JQueryStatic;
6538
6636
  type _Event = Event;
6539
6637
  type _UIEvent = UIEvent;
6540
6638
  type _MouseEvent = MouseEvent;
6639
+ type _DragEvent = DragEvent;
6541
6640
  type _KeyboardEvent = KeyboardEvent;
6542
6641
  type _TouchEvent = TouchEvent;
6543
6642
  type _FocusEvent = FocusEvent;
jquery/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/jquery",
3
- "version": "3.3.28",
3
+ "version": "3.3.32",
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": "66b954d76234aeb59291076b1d3bbb9d50d0c634d84aa78b6703bdc349cb91fe",
129
- "typeScriptVersion": "2.3"
129
+ "typesPublisherContentHash": "7fe9659987c254c276bd48b55cf75a1e8d59dcbb16b94cf9b180942dd80d4b7e",
130
+ "typeScriptVersion": "2.8"
130
131
  }