From 73e8a6b08e4818490848216d49705d31daf157ee Mon Sep 17 00:00:00 2001 From: Nicholas Oxh Date: Thu, 12 Jun 2014 07:06:12 +0200 Subject: [PATCH] Update jquery.d.ts Make responseJSON optional, since it is only present on jqXHR if the Content-Type of the response is "application/json". Since responseJSON is an "output" parameter on jqXHR, I don't think it makes any functional difference, if it is marked as optional or not, but logically it probably makes more sense... --- jquery/jquery.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery/jquery.d.ts b/jquery/jquery.d.ts index bb5a73fd9..e6cba94d2 100644 --- a/jquery/jquery.d.ts +++ b/jquery/jquery.d.ts @@ -171,7 +171,7 @@ interface JQueryXHR extends XMLHttpRequest, JQueryPromise { /** * Property containing the parsed response if the response Content-Type is json */ - responseJSON: any; + responseJSON?: any; } /**