mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-25 21:55:49 +08:00
Add method property to ajaxSettings
This commit is contained in:
4
jquery/jquery.d.ts
vendored
4
jquery/jquery.d.ts
vendored
@@ -105,6 +105,10 @@ interface JQueryAjaxSettings {
|
||||
* Specify the callback function name for a JSONP request. This value will be used instead of the random name automatically generated by jQuery. It is preferable to let jQuery generate a unique name as it'll make it easier to manage the requests and provide callbacks and error handling. You may want to specify the callback when you want to enable better browser caching of GET requests. As of jQuery 1.5, you can also use a function for this setting, in which case the value of jsonpCallback is set to the return value of that function.
|
||||
*/
|
||||
jsonpCallback?: any;
|
||||
/**
|
||||
* The HTTP method to use for the request (e.g. "POST", "GET", "PUT"). (version added: 1.9.0)
|
||||
*/
|
||||
method?: string;
|
||||
/**
|
||||
* A mime type to override the XHR mime type. (version added: 1.5.1)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user