[jquery] Add ajaxSettings property. (#20433)

This commit is contained in:
Leonard Thieu
2017-10-16 11:32:07 -07:00
committed by Andy
parent 112130d22b
commit 42cf3abe63
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -41,6 +41,11 @@ type _Event = Event;
type _Promise<T> = Promise<T>;
interface JQueryStatic<TElement extends Node = HTMLElement> {
/**
* @see {@link http://api.jquery.com/jquery.ajax/#jQuery-ajax1}
* @deprecated Use jQuery.ajaxSetup(options)
*/
ajaxSettings: JQuery.AjaxSettings;
/**
* A factory function that returns a chainable utility object with methods to register multiple
* callbacks into callback queues, invoke callback queues, and relay the success or failure state of
+5
View File
@@ -62,6 +62,11 @@ function JQueryStatic() {
$();
}
function ajaxSettings() {
// $ExpectType JQuery.AjaxSettings
$.ajaxSettings;
}
function Event() {
// $ExpectType EventStatic<HTMLElement>
$.Event;