mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
jquery: Add null as a possible return value on val()
```ts $(`<select multiple> <option>A</option> <option>B</option> </select>`).val() === null ```
This commit is contained in:
Vendored
+1
-1
@@ -2329,7 +2329,7 @@ interface JQuery<TElement extends Node = HTMLElement> {
|
||||
* @see {@link https://api.jquery.com/val/}
|
||||
* @since 1.0
|
||||
*/
|
||||
val(): string | number | string[] | undefined;
|
||||
val(): string | number | string[] | null | undefined;
|
||||
/**
|
||||
* Set the CSS width of each element in the set of matched elements.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user