mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-04 17:20:09 +00:00
[jquery] No null.
This commit is contained in:
2
types/jquery/index.d.ts
vendored
2
types/jquery/index.d.ts
vendored
@@ -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