mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-06 16:20:26 +08:00
Improve jquery.ajax definitions
This commit is contained in:
Vendored
+3
-3
@@ -57,7 +57,7 @@ interface JQueryAjaxSettings {
|
||||
/*
|
||||
Interface for the jqXHR object
|
||||
*/
|
||||
interface JQueryXHR extends XMLHttpRequest {
|
||||
interface JQueryXHR extends XMLHttpRequest, JQueryPromise {
|
||||
overrideMimeType();
|
||||
}
|
||||
|
||||
@@ -167,8 +167,8 @@ interface JQueryStatic {
|
||||
/****
|
||||
AJAX
|
||||
*****/
|
||||
ajax(settings: JQueryAjaxSettings);
|
||||
ajax(url: string, settings: JQueryAjaxSettings);
|
||||
ajax(settings: JQueryAjaxSettings): JQueryXHR;
|
||||
ajax(url: string, settings?: JQueryAjaxSettings): JQueryXHR;
|
||||
|
||||
ajaxPrefilter(dataTypes: string, handler: (opts: any, originalOpts: any, jqXHR: JQueryXHR) => any): any;
|
||||
ajaxPrefilter(handler: (opts: any, originalOpts: any, jqXHR: JQueryXHR) => any): any;
|
||||
|
||||
Reference in New Issue
Block a user