@types/jquery 3.5.19 → 3.5.21
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 +11 -1
- jquery/JQueryStatic.d.ts +6 -6
- jquery/README.md +1 -1
- jquery/package.json +2 -2
jquery/JQuery.d.ts
CHANGED
|
@@ -12781,7 +12781,17 @@ $( "input" )
|
|
|
12781
12781
|
</html>
|
|
12782
12782
|
```
|
|
12783
12783
|
*/
|
|
12784
|
-
val():
|
|
12784
|
+
val():
|
|
12785
|
+
| (TElement extends HTMLSelectElement & {type: "select-one"}
|
|
12786
|
+
? string
|
|
12787
|
+
: TElement extends HTMLSelectElement & {type: "select-multiple"}
|
|
12788
|
+
? string[]
|
|
12789
|
+
: TElement extends HTMLSelectElement
|
|
12790
|
+
? string | string[]
|
|
12791
|
+
: TElement extends {value: string | number}
|
|
12792
|
+
? TElement["value"]
|
|
12793
|
+
: string | number | string[])
|
|
12794
|
+
| undefined;
|
|
12785
12795
|
/**
|
|
12786
12796
|
* Set the CSS width of each element in the set of matched elements.
|
|
12787
12797
|
* @param value_function _@param_ `value_function`
|
jquery/JQueryStatic.d.ts
CHANGED
|
@@ -97,9 +97,9 @@ $( "<div/>", {
|
|
|
97
97
|
```
|
|
98
98
|
*/
|
|
99
99
|
<TElement extends HTMLElement = HTMLElement>(
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
html: JQuery.htmlString,
|
|
101
|
+
ownerDocument_attributes?: Document | JQuery.PlainObject,
|
|
102
|
+
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
|
|
103
103
|
): JQuery<TElement>;
|
|
104
104
|
/**
|
|
105
105
|
* Accepts a string containing a CSS selector which is then used to match a set of elements.
|
|
@@ -139,9 +139,9 @@ $( "div", xml.responseXML );
|
|
|
139
139
|
|
|
140
140
|
*/
|
|
141
141
|
<TElement extends Element = HTMLElement>(
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
142
|
+
selector: JQuery.Selector,
|
|
143
|
+
context?: Element | Document | JQuery | JQuery.Selector,
|
|
144
|
+
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
|
|
145
145
|
): JQuery<TElement>;
|
|
146
146
|
/**
|
|
147
147
|
* Return a collection of matched elements either found in the DOM based on passed argument(s) or created by passing an HTML string.
|
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, 04 Oct 2023 22:35:35 GMT
|
|
12
12
|
* Dependencies: [@types/sizzle](https://npmjs.com/package/@types/sizzle)
|
|
13
13
|
* Global values: `$`, `Symbol`, `jQuery`
|
|
14
14
|
|
jquery/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/jquery",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.21",
|
|
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": "253fe25bc0d90b69d8d81a232e9c5fc1d25789753ae38a451cb30e703d4d490a",
|
|
131
131
|
"typeScriptVersion": "4.5"
|
|
132
132
|
}
|