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:
Diogo Franco
2017-06-26 14:21:19 +09:00
committed by GitHub
parent 0020fcee62
commit 6bd192c61a
+1 -1
View File
@@ -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.
*