Update index.d.ts to support ajaxTransport

Update index.d.ts to jQuery.ajaxTransport().
See https://api.jquery.com/jQuery.ajaxTransport/
This commit is contained in:
SamSchelfhout
2017-01-23 10:37:00 +01:00
committed by GitHub
parent b216e18bf5
commit 39772baa2c

9
jquery/index.d.ts vendored
View File

@@ -786,6 +786,15 @@ interface JQueryStatic {
*/
ajaxPrefilter(handler: (opts: any, originalOpts: JQueryAjaxSettings, jqXHR: JQueryXHR) => any): void;
/**
* Creates an object that handles the actual transmission of Ajax data.
*
* @param dataType A string identifying the data type to use.
* @param handler A handler to return the new transport object to use with the data type provided in the first argument.
* @see {@link https://api.jquery.com/jQuery.ajaxTransport/}
*/
ajaxTransport(dataType: string, handler: (opts: any, originalOpts: JQueryAjaxSettings, jqXHR: JQueryXHR) => any): void;
ajaxSettings: JQueryAjaxSettings;
/**