@types/jquery 3.5.33 → 4.0.0

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 CHANGED
@@ -12225,18 +12225,6 @@ $( "a" ).on( "click", function( event ) {
12225
12225
  | ((this: TElement, index: number, className: string, state: TState) => string),
12226
12226
  state?: TState,
12227
12227
  ): this;
12228
- /**
12229
- * Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the state argument.
12230
- * @param state A boolean value to determine whether the class should be added or removed.
12231
- * @see \`{@link https://api.jquery.com/toggleClass/ }\`
12232
- * @since 1.4
12233
- * @deprecated ​ Deprecated since 3.0. See \`{@link https://github.com/jquery/jquery/pull/2618 }\`.
12234
- *
12235
- * **Cause**: Calling `.toggleClass()` with no arguments, or with a single Boolean `true` or `false` argument, has been deprecated. Its behavior was poorly documented, but essentially the method saved away the current class value in a data item when the class was removed and restored the saved value when it was toggled back. If you do not believe you are specificially trying to use this form of the method, it is possible you are accidentally doing so via an inadvertent undefined value, as `.toggleClass( undefined )` toggles all classes.
12236
- *
12237
- * **Solution**: If this functionality is still needed, save the current full `.attr( "class" )` value in a data item and restore it when required.
12238
- */
12239
- toggleClass(state?: boolean): this;
12240
12228
  /**
12241
12229
  * Execute all handlers and behaviors attached to the matched elements for the given event type.
12242
12230
  * @param eventType_event _@param_ `eventType_event`
jquery/JQueryStatic.d.ts CHANGED
@@ -15,12 +15,6 @@ interface JQueryStatic {
15
15
  * @since 1.4.3
16
16
  */
17
17
  cssHooks: JQuery.CSSHooks;
18
- /**
19
- * An object containing all CSS properties that may be used without a unit. The .css() method uses this object to see if it may append px to unitless values.
20
- * @see \`{@link https://api.jquery.com/jQuery.cssNumber/ }\`
21
- * @since 1.4.3
22
- */
23
- cssNumber: JQuery.PlainObject<boolean>;
24
18
  Deferred: JQuery.DeferredStatic;
25
19
  easing: JQuery.Easings;
26
20
  Event: JQuery.EventStatic;
@@ -354,10 +348,6 @@ $.ajax({ data: myData });
354
348
  // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
355
349
  ) => JQuery.Transport | void,
356
350
  ): void;
357
- /**
358
- * @deprecated ​ Deprecated since 3.3. Internal. See \`{@link https://github.com/jquery/jquery/issues/3384 }\`.
359
- */
360
- camelCase(value: string): string;
361
351
  cleanData(elems: ArrayLike<Element | Document | Window | JQuery.PlainObject>): void;
362
352
  /**
363
353
  * Check to see if a DOM element is a descendant of another DOM element.
@@ -2039,34 +2029,6 @@ $spans.eq( 3 ).text( jQuery.inArray( "Pete", arr, 2 ) );
2039
2029
  ```
2040
2030
  */
2041
2031
  inArray<T>(value: T, array: T[], fromIndex?: number): number;
2042
- /**
2043
- * Determine whether the argument is an array.
2044
- * @param obj Object to test whether or not it is an array.
2045
- * @see \`{@link https://api.jquery.com/jQuery.isArray/ }\`
2046
- * @since 1.3
2047
- * @deprecated ​ Deprecated since 3.2. Use \`{@link ArrayConstructor.isArray Array.isArray}\`.
2048
- * @example ​ ````Finds out if the parameter is an array.
2049
- ```html
2050
- <!doctype html>
2051
- <html lang="en">
2052
- <head>
2053
- <meta charset="utf-8">
2054
- <title>jQuery.isArray demo</title>
2055
- <script src="https://code.jquery.com/jquery-3.3.1.js"></script>
2056
- </head>
2057
- <body>
2058
-
2059
- Is [] an Array? <b></b>
2060
-
2061
- <script>
2062
- $( "b" ).append( "" + $.isArray([]) );
2063
- </script>
2064
-
2065
- </body>
2066
- </html>
2067
- ```
2068
- */
2069
- isArray(obj: any): obj is any[];
2070
2032
  /**
2071
2033
  * Check to see if an object is empty (contains no enumerable properties).
2072
2034
  * @param obj The object that will be checked to see if it's empty.
@@ -2079,96 +2041,6 @@ jQuery.isEmptyObject({ foo: "bar" }); // false
2079
2041
  ```
2080
2042
  */
2081
2043
  isEmptyObject(obj: any): boolean;
2082
- /**
2083
- * Determine if the argument passed is a JavaScript function object.
2084
- * @param obj Object to test whether or not it is a function.
2085
- * @see \`{@link https://api.jquery.com/jQuery.isFunction/ }\`
2086
- * @since 1.2
2087
- * @deprecated ​ Deprecated since 3.3. Use `typeof x === "function"`.
2088
- * @example ​ ````Test a few parameter examples.
2089
- ```html
2090
- <!doctype html>
2091
- <html lang="en">
2092
- <head>
2093
- <meta charset="utf-8">
2094
- <title>jQuery.isFunction demo</title>
2095
- <style>
2096
- div {
2097
- color: blue;
2098
- margin: 2px;
2099
- font-size: 14px;
2100
- }
2101
- span {
2102
- color: red;
2103
- }
2104
- </style>
2105
- <script src="https://code.jquery.com/jquery-3.3.1.js"></script>
2106
- </head>
2107
- <body>
2108
-
2109
- <div>jQuery.isFunction( objs[ 0 ] ) = <span></span></div>
2110
- <div>jQuery.isFunction( objs[ 1 ] ) = <span></span></div>
2111
- <div>jQuery.isFunction( objs[ 2 ] ) = <span></span></div>
2112
- <div>jQuery.isFunction( objs[ 3 ] ) = <span></span></div>
2113
- <div>jQuery.isFunction( objs[ 4 ] ) = <span></span></div>
2114
-
2115
- <script>
2116
- function stub() {}
2117
- var objs = [
2118
- function() {},
2119
- { x:15, y:20 },
2120
- null,
2121
- stub,
2122
- "function"
2123
- ];
2124
-
2125
- jQuery.each( objs, function( i ) {
2126
- var isFunc = jQuery.isFunction( objs[ i ]);
2127
- $( "span" ).eq( i ).text( isFunc );
2128
- });
2129
- </script>
2130
-
2131
- </body>
2132
- </html>
2133
- ```
2134
- * @example ​ ````Finds out if the parameter is a function.
2135
- ```javascript
2136
- $.isFunction(function() {});
2137
- ```
2138
- */
2139
- // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
2140
- isFunction(obj: any): obj is Function;
2141
- /**
2142
- * Determines whether its argument represents a JavaScript number.
2143
- * @param value The value to be tested.
2144
- * @see \`{@link https://api.jquery.com/jQuery.isNumeric/ }\`
2145
- * @since 1.7
2146
- * @deprecated ​ Deprecated since 3.3. Internal. See \`{@link https://github.com/jquery/jquery/issues/2960 }\`.
2147
- * @example ​ ````Sample return values of $.isNumeric with various inputs.
2148
- ```javascript
2149
- // true (numeric)
2150
- $.isNumeric( "-10" )
2151
- $.isNumeric( "0" )
2152
- $.isNumeric( 0xFF )
2153
- $.isNumeric( "0xFF" )
2154
- $.isNumeric( "8e5" )
2155
- $.isNumeric( "3.1415" )
2156
- $.isNumeric( +10 )
2157
- $.isNumeric( 0144 )
2158
-
2159
- // false (non-numeric)
2160
- $.isNumeric( "-0x42" )
2161
- $.isNumeric( "7.2acdgs" )
2162
- $.isNumeric( "" )
2163
- $.isNumeric( {} )
2164
- $.isNumeric( NaN )
2165
- $.isNumeric( null )
2166
- $.isNumeric( true )
2167
- $.isNumeric( Infinity )
2168
- $.isNumeric( undefined )
2169
- ```
2170
- */
2171
- isNumeric(value: any): boolean;
2172
2044
  /**
2173
2045
  * Check to see if an object is a plain object (created using "{}" or "new Object").
2174
2046
  * @param obj The object that will be checked to see if it's a plain object.
@@ -2181,38 +2053,6 @@ jQuery.isPlainObject( "test" ) // false
2181
2053
  ```
2182
2054
  */
2183
2055
  isPlainObject(obj: any): boolean;
2184
- /**
2185
- * Determine whether the argument is a window.
2186
- * @param obj Object to test whether or not it is a window.
2187
- * @see \`{@link https://api.jquery.com/jQuery.isWindow/ }\`
2188
- * @since 1.4.3
2189
- * @deprecated ​ Deprecated since 3.3. Internal. See \`{@link https://github.com/jquery/jquery/issues/3629 }\`.
2190
- *
2191
- * **Cause**: This method returns `true` if its argument is thought to be a `window` element. It was created for internal use and is not a reliable way of detecting `window` for public needs.
2192
- *
2193
- * **Solution**: Remove any use of `jQuery.isWindow()` from code. If it is truly needed it can be replaced with a check for `obj != null && obj === obj.window` which was the test used inside this method.
2194
- * @example ​ ````Finds out if the parameter is a window.
2195
- ```html
2196
- <!doctype html>
2197
- <html lang="en">
2198
- <head>
2199
- <meta charset="utf-8">
2200
- <title>jQuery.isWindow demo</title>
2201
- <script src="https://code.jquery.com/jquery-3.3.1.js"></script>
2202
- </head>
2203
- <body>
2204
-
2205
- Is 'window' a window? <b></b>
2206
-
2207
- <script>
2208
- $( "b" ).append( "" + $.isWindow( window ) );
2209
- </script>
2210
-
2211
- </body>
2212
- </html>
2213
- ```
2214
- */
2215
- isWindow(obj: any): obj is Window;
2216
2056
  /**
2217
2057
  * Check to see if a DOM node is within an XML document (or is an XML document).
2218
2058
  * @param node The DOM node that will be checked to see if it's in an XML document.
@@ -2495,27 +2335,12 @@ $log.append( "2nd loaded jQuery version (jq162): " + jq162.fn.jquery + "<br>" );
2495
2335
  ```
2496
2336
  */
2497
2337
  noConflict(removeAll?: boolean): this;
2498
- /**
2499
- * @deprecated ​ Deprecated since 3.2.
2500
- *
2501
- * **Cause**: This public but never-documented method has been deprecated as of jQuery 3.2.0.
2502
- *
2503
- * **Solution**: Replace calls such as `jQuery.nodeName( elem, "div" )` with a test such as `elem.nodeName.toLowerCase() === "div"`.
2504
- */
2505
- nodeName(elem: Node, name: string): boolean;
2506
2338
  /**
2507
2339
  * An empty function.
2508
2340
  * @see \`{@link https://api.jquery.com/jQuery.noop/ }\`
2509
2341
  * @since 1.4
2510
2342
  */
2511
2343
  noop(): undefined;
2512
- /**
2513
- * Return a number representing the current time.
2514
- * @see \`{@link https://api.jquery.com/jQuery.now/ }\`
2515
- * @since 1.4.3
2516
- * @deprecated ​ Deprecated since 3.3. Use \`{@link DateConstructor.now Date.now}\`.
2517
- */
2518
- now(): number;
2519
2344
  /**
2520
2345
  * Create a serialized representation of an array, a plain object, or a jQuery object suitable for use in a URL query string or Ajax request. In case a jQuery object is passed, it should contain input elements with name/value properties.
2521
2346
  * @param obj An array, a plain object, or a jQuery object to serialize.
@@ -2645,23 +2470,6 @@ $( "<ol></ol>" )
2645
2470
  ```
2646
2471
  */
2647
2472
  parseHTML(data: string, context_keepScripts?: Document | null | boolean): JQuery.Node[];
2648
- /**
2649
- * Takes a well-formed JSON string and returns the resulting JavaScript value.
2650
- * @param json The JSON string to parse.
2651
- * @see \`{@link https://api.jquery.com/jQuery.parseJSON/ }\`
2652
- * @since 1.4.1
2653
- * @deprecated ​ Deprecated since 3.0. Use \`{@link JSON.parse }\`.
2654
- *
2655
- * **Cause**: The `jQuery.parseJSON` method in recent jQuery is identical to the native `JSON.parse`. As of jQuery 3.0 `jQuery.parseJSON` is deprecated.
2656
- *
2657
- * **Solution**: Replace any use of `jQuery.parseJSON` with `JSON.parse`.
2658
- * @example ​ ````Parse a JSON string.
2659
- ```javascript
2660
- var obj = jQuery.parseJSON( '{ "name": "John" }' );
2661
- alert( obj.name === "John" );
2662
- ```
2663
- */
2664
- parseJSON(json: string): any;
2665
2473
  /**
2666
2474
  * Parses a string into an XML document.
2667
2475
  * @param data a well-formed XML string to be parsed
@@ -13586,87 +13394,6 @@ $( "span:eq(3)" ).text( "" + jQuery.data( div, "test2" ) );
13586
13394
  speed<TElement extends Element = HTMLElement>(
13587
13395
  duration_complete_settings?: JQuery.Duration | ((this: TElement) => void) | JQuery.SpeedSettings<TElement>,
13588
13396
  ): JQuery.EffectsOptions<TElement>;
13589
- /**
13590
- * Remove the whitespace from the beginning and end of a string.
13591
- * @param str The string to trim.
13592
- * @see \`{@link https://api.jquery.com/jQuery.trim/ }\`
13593
- * @since 1.0
13594
- * @deprecated ​ Deprecated since 3.5. Use \`{@link String.prototype.trim String.prototype.trim}\`.
13595
- * @example ​ ````Remove the white spaces at the start and at the end of the string.
13596
- ```html
13597
- <!doctype html>
13598
- <html lang="en">
13599
- <head>
13600
- <meta charset="utf-8">
13601
- <title>jQuery.trim demo</title>
13602
- <script src="https://code.jquery.com/jquery-3.3.1.js"></script>
13603
- </head>
13604
- <body>
13605
-
13606
- <pre id="original"></pre>
13607
- <pre id="trimmed"></pre>
13608
-
13609
- <script>
13610
- var str = " lots of spaces before and after ";
13611
- $( "#original" ).html( "Original String: '" + str + "'" );
13612
- $( "#trimmed" ).html( "$.trim()'ed: '" + $.trim(str) + "'" );
13613
- </script>
13614
-
13615
- </body>
13616
- </html>
13617
- ```
13618
- * @example ​ ````Remove the white spaces at the start and at the end of the string.
13619
- ```javascript
13620
- $.trim(" hello, how are you? ");
13621
- ```
13622
- * @example ​ ````Remove the white spaces at the start and at the end of the string.
13623
- ```javascript
13624
- $.trim(" hello, how are you? ");
13625
- ```
13626
- */
13627
- trim(str: string): string;
13628
- /**
13629
- * Determine the internal JavaScript [[Class]] of an object.
13630
- * @param obj Object to get the internal JavaScript [[Class]] of.
13631
- * @see \`{@link https://api.jquery.com/jQuery.type/ }\`
13632
- * @since 1.4.3
13633
- * @deprecated ​ Deprecated since 3.3. See \`{@link https://github.com/jquery/jquery/issues/3605 }\`.
13634
- * @example ​ ````Find out if the parameter is a RegExp.
13635
- ```html
13636
- <!doctype html>
13637
- <html lang="en">
13638
- <head>
13639
- <meta charset="utf-8">
13640
- <title>jQuery.type demo</title>
13641
- <script src="https://code.jquery.com/jquery-3.3.1.js"></script>
13642
- </head>
13643
- <body>
13644
-
13645
- Is it a RegExp? <b></b>
13646
-
13647
- <script>
13648
- $( "b" ).append( "" + jQuery.type( /test/ ) );
13649
- </script>
13650
-
13651
- </body>
13652
- </html>
13653
- ```
13654
- */
13655
- type(
13656
- obj: any,
13657
- ):
13658
- | "array"
13659
- | "boolean"
13660
- | "date"
13661
- | "error"
13662
- | "function"
13663
- | "null"
13664
- | "number"
13665
- | "object"
13666
- | "regexp"
13667
- | "string"
13668
- | "symbol"
13669
- | "undefined";
13670
13397
  /**
13671
13398
  * Sorts an array of DOM elements, in place, with the duplicates removed. Note that this only works on arrays of DOM elements, not strings or numbers.
13672
13399
  * @param array The Array of DOM elements.
jquery/README.md CHANGED
@@ -8,8 +8,8 @@ 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: Fri, 22 Aug 2025 05:35:29 GMT
12
- * Dependencies: [@types/sizzle](https://npmjs.com/package/@types/sizzle)
11
+ * Last updated: Mon, 23 Feb 2026 17:23:41 GMT
12
+ * Dependencies: none
13
13
 
14
14
  # Credits
15
15
  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), [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), [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), [Martin Badin](https://github.com/martin-badin), and [Chris Frewin](https://github.com/princefishthrower).
@@ -0,0 +1,7 @@
1
+ /// <reference path="index.d.ts" />
2
+
3
+ // jQuery slim factory for environments without a window
4
+ // Usage: import { jQueryFactory } from "jquery/factory-slim";
5
+ // const $ = jQueryFactory(window);
6
+
7
+ export declare function jQueryFactory(window: Window): JQueryStatic;
@@ -0,0 +1,7 @@
1
+ /// <reference path="index.d.ts" />
2
+
3
+ // jQuery slim factory for environments without a window (CommonJS)
4
+ // Usage: const { jQueryFactory } = require("jquery/factory-slim");
5
+ // const $ = jQueryFactory(window);
6
+
7
+ export declare function jQueryFactory(window: Window): JQueryStatic;
jquery/factory.d.mts ADDED
@@ -0,0 +1,7 @@
1
+ /// <reference path="index.d.ts" />
2
+
3
+ // jQuery factory for environments without a window
4
+ // Usage: import { jQueryFactory } from "jquery/factory";
5
+ // const $ = jQueryFactory(window);
6
+
7
+ export declare function jQueryFactory(window: Window): JQueryStatic;
jquery/factory.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ /// <reference path="index.d.ts" />
2
+
3
+ // jQuery factory for environments without a window (CommonJS)
4
+ // Usage: const { jQueryFactory } = require("jquery/factory");
5
+ // const $ = jQueryFactory(window);
6
+
7
+ export declare function jQueryFactory(window: Window): JQueryStatic;
jquery/index.d.mts ADDED
@@ -0,0 +1,4 @@
1
+ /// <reference path="index.d.ts" />
2
+
3
+ export default jQuery;
4
+ export { jQuery, jQuery as $ };
jquery/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="sizzle" />
2
1
  /// <reference path="JQueryStatic.d.ts" />
3
2
  /// <reference path="JQuery.d.ts" />
4
3
  /// <reference path="misc.d.ts" />
jquery/misc.d.ts CHANGED
@@ -23,15 +23,22 @@ declare namespace JQuery {
23
23
  [key: string]: T;
24
24
  }
25
25
 
26
- interface Selectors extends Sizzle.Selectors {
27
- /**
28
- * @deprecated Deprecated since 3.0. Use \`{@link Selectors#pseudos }\`.
29
- *
30
- * **Cause**: The standard way to add new custom selectors through jQuery is `jQuery.expr.pseudos`. These two other aliases are deprecated, although they still work as of jQuery 3.0.
31
- *
32
- * **Solution**: Rename any of the older usage to `jQuery.expr.pseudos`. The functionality is identical.
33
- */
34
- ":": Sizzle.Selectors.PseudoFunctions;
26
+ interface Selectors {
27
+ cacheLength: number;
28
+ match: { [name: string]: RegExp };
29
+ find: {
30
+ [name: string]: (
31
+ match: RegExpMatchArray,
32
+ context: Element | Document,
33
+ isXML: boolean,
34
+ ) => Element[] | undefined;
35
+ };
36
+ preFilter: { [name: string]: (match: RegExpMatchArray) => string[] };
37
+ filter: { [name: string]: (element: string, ...matches: string[]) => boolean };
38
+ attrHandle: { [name: string]: (elem: any, casePreservedName: string, isXML: boolean) => string };
39
+ pseudos: { [name: string]: (elem: Element) => boolean };
40
+ setFilters: { [name: string]: (elements: Element[], argument: number, not: boolean) => Element[] };
41
+ createPseudo(fn: (...args: any[]) => (elem: Element) => boolean): (elem: Element) => boolean;
35
42
  /**
36
43
  * @deprecated ​ Deprecated since 3.0. Use \`{@link Selectors#pseudos }\`.
37
44
  *
@@ -39,7 +46,7 @@ declare namespace JQuery {
39
46
  *
40
47
  * **Solution**: Rename any of the older usage to `jQuery.expr.pseudos`. The functionality is identical.
41
48
  */
42
- filter: Sizzle.Selectors.FilterFunctions;
49
+ ":": { [name: string]: (elem: Element) => boolean };
43
50
  }
44
51
 
45
52
  // region Ajax
@@ -4500,49 +4507,6 @@ jQuery.Tween.propHooks[ property ] = {
4500
4507
  // #region Effects (fx)
4501
4508
 
4502
4509
  interface Effects {
4503
- /**
4504
- * The rate (in milliseconds) at which animations fire.
4505
- * @see \`{@link https://api.jquery.com/jQuery.fx.interval/ }\`
4506
- * @since 1.4.3
4507
- * @deprecated ​ Deprecated since 3.0. See \`{@link https://api.jquery.com/jQuery.fx.interval/ }\`.
4508
- *
4509
- * **Cause**: As of jQuery 3.0 the `jQuery.fx.interval` property can be used to change the animation interval only on browsers that do not support the `window.requestAnimationFrame()` method. That is currently only Internet Explorer 9 and the Android Browser. Once support is dropped for these browsers, the property will serve no purpose and it will be removed.
4510
- *
4511
- * **Solution**: Find and remove code that changes or uses `jQuery.fx.interval`. If the value is being used by code in your page or a plugin, the code may be making assumptions that are no longer valid. The default value of `jQuery.fx.interval` is `13` (milliseconds), which could be used instead of accessing this property.
4512
- * @example ​ ````Cause all animations to run with less frames.
4513
- ```html
4514
- <!doctype html>
4515
- <html lang="en">
4516
- <head>
4517
- <meta charset="utf-8">
4518
- <title>jQuery.fx.interval demo</title>
4519
- <style>
4520
- div {
4521
- width: 50px;
4522
- height: 30px;
4523
- margin: 5px;
4524
- float: left;
4525
- background: green;
4526
- }
4527
- </style>
4528
- <script src="https://code.jquery.com/jquery-3.3.1.js"></script>
4529
- </head>
4530
- <body>
4531
-
4532
- <p><input type="button" value="Run"></p>
4533
- <div></div>
4534
-
4535
- <script>
4536
- jQuery.fx.interval = 100;
4537
- $( "input" ).click(function() {
4538
- $( "div" ).toggle( 3000 );
4539
- });
4540
- </script>
4541
- </body>
4542
- </html>
4543
- ```
4544
- */
4545
- interval: number;
4546
4510
  /**
4547
4511
  * Globally disable all animations.
4548
4512
  * @see \`{@link https://api.jquery.com/jQuery.fx.off/ }\`
jquery/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/jquery",
3
- "version": "3.5.33",
3
+ "version": "4.0.0",
4
4
  "description": "TypeScript definitions for jquery",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery",
6
6
  "license": "MIT",
@@ -118,16 +118,55 @@
118
118
  ],
119
119
  "main": "",
120
120
  "types": "index.d.ts",
121
+ "exports": {
122
+ ".": {
123
+ "import": {
124
+ "types": "./index.d.mts"
125
+ },
126
+ "default": {
127
+ "types": "./index.d.ts"
128
+ }
129
+ },
130
+ "./slim": {
131
+ "import": {
132
+ "types": "./slim.d.mts"
133
+ },
134
+ "default": {
135
+ "types": "./slim.d.ts"
136
+ }
137
+ },
138
+ "./factory": {
139
+ "node": {
140
+ "types": "./factory.d.ts"
141
+ },
142
+ "import": {
143
+ "types": "./factory.d.mts"
144
+ },
145
+ "default": {
146
+ "types": "./factory.d.ts"
147
+ }
148
+ },
149
+ "./factory-slim": {
150
+ "node": {
151
+ "types": "./factory-slim.d.ts"
152
+ },
153
+ "import": {
154
+ "types": "./factory-slim.d.mts"
155
+ },
156
+ "default": {
157
+ "types": "./factory-slim.d.ts"
158
+ }
159
+ },
160
+ "./package.json": "./package.json"
161
+ },
121
162
  "repository": {
122
163
  "type": "git",
123
164
  "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
124
165
  "directory": "types/jquery"
125
166
  },
126
167
  "scripts": {},
127
- "dependencies": {
128
- "@types/sizzle": "*"
129
- },
168
+ "dependencies": {},
130
169
  "peerDependencies": {},
131
- "typesPublisherContentHash": "f3e03c678bcf8d94ec287ff1913e43128e9292488a3848d941a8c50d8eef9df2",
170
+ "typesPublisherContentHash": "2e27668e9f3212931ba51caa29d289d229efeec7019c83a12ebedb02cc50d30f",
132
171
  "typeScriptVersion": "5.2"
133
172
  }
jquery/slim.d.mts ADDED
@@ -0,0 +1,4 @@
1
+ /// <reference path="index.d.ts" />
2
+
3
+ export default jQuery;
4
+ export { jQuery, jQuery as $ };
jquery/slim.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ /// <reference path="index.d.ts" />
2
+
3
+ // jQuery Slim excludes: ajax, effects, deferred, callbacks, queue
4
+ // This file provides types for the slim build
5
+
6
+ export = jQuery;
@@ -1,3 +0,0 @@
1
- /// <reference types="jquery" />
2
-
3
- export = jQuery;