From 6bd192c61abd576bd0ff5f73d7acbd1d0f5161c3 Mon Sep 17 00:00:00 2001 From: Diogo Franco Date: Mon, 26 Jun 2017 14:21:19 +0900 Subject: [PATCH] jquery: Add null as a possible return value on val() ```ts $(``).val() === null ``` --- types/jquery/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/jquery/index.d.ts b/types/jquery/index.d.ts index db7af3d2ad..ac047d0167 100644 --- a/types/jquery/index.d.ts +++ b/types/jquery/index.d.ts @@ -2329,7 +2329,7 @@ interface JQuery { * @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. *