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...
This commit is contained in:
Nicholas Oxh
2014-06-12 07:06:12 +02:00
parent 1555e36253
commit 73e8a6b08e
+1 -1
View File
@@ -171,7 +171,7 @@ interface JQueryXHR extends XMLHttpRequest, JQueryPromise<any> {
/**
* Property containing the parsed response if the response Content-Type is json
*/
responseJSON: any;
responseJSON?: any;
}
/**