diff --git a/types/jquery/index.d.ts b/types/jquery/index.d.ts index b4c4d37387..69196b6d00 100644 --- a/types/jquery/index.d.ts +++ b/types/jquery/index.d.ts @@ -2330,7 +2330,7 @@ interface JQuery { * @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. * diff --git a/types/jquery/jquery-tests.ts b/types/jquery/jquery-tests.ts index b4b4f10aaf..7b0c521b88 100644 --- a/types/jquery/jquery-tests.ts +++ b/types/jquery/jquery-tests.ts @@ -3028,7 +3028,7 @@ function JQuery() { return 'myVal'; }); - // $ExpectType string | number | string[] | null | undefined + // $ExpectType string | number | string[] | undefined $('p').val(); } }