mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
[jquery] Add ajaxSettings property. (#20433)
This commit is contained in:
Vendored
+5
@@ -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
|
||||
|
||||
@@ -62,6 +62,11 @@ function JQueryStatic() {
|
||||
$();
|
||||
}
|
||||
|
||||
function ajaxSettings() {
|
||||
// $ExpectType JQuery.AjaxSettings
|
||||
$.ajaxSettings;
|
||||
}
|
||||
|
||||
function Event() {
|
||||
// $ExpectType EventStatic<HTMLElement>
|
||||
$.Event;
|
||||
|
||||
Reference in New Issue
Block a user