mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
[jquery] No null.
This commit is contained in:
Vendored
+1
-1
@@ -2330,7 +2330,7 @@ interface JQuery<TElement extends Node = HTMLElement> {
|
||||
* @see {@link https://api.jquery.com/val/}
|
||||
* @since 1.0
|
||||
*/
|
||||
val(): string | number | string[] | null | undefined;
|
||||
val(): string | number | string[] | undefined;
|
||||
/**
|
||||
* Set the CSS width of each element in the set of matched elements.
|
||||
*
|
||||
|
||||
@@ -3028,7 +3028,7 @@ function JQuery() {
|
||||
return 'myVal';
|
||||
});
|
||||
|
||||
// $ExpectType string | number | string[] | null | undefined
|
||||
// $ExpectType string | number | string[] | undefined
|
||||
$('p').val();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user