mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-28 12:43:06 +08:00
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:
Vendored
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user