mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #3106 from pine613/fix/zepto/ajax_settings
Fix ajaxSettings
This commit is contained in:
Vendored
+7
@@ -1580,13 +1580,20 @@ interface ZeptoAjaxSettings {
|
||||
data?: any;
|
||||
processData?: boolean;
|
||||
contentType?: string;
|
||||
mimeType?: string;
|
||||
dataType?: string;
|
||||
jsonp?: string;
|
||||
jsonpCallback?: any; // string or Function
|
||||
timeout?: number;
|
||||
headers?: { [key: string]: string };
|
||||
async?: boolean;
|
||||
global?: boolean;
|
||||
context?: any;
|
||||
traditional?: boolean;
|
||||
cache?: boolean;
|
||||
xhrFields?: { [key: string]: any };
|
||||
username?: string;
|
||||
password?: string;
|
||||
beforeSend?: (xhr: XMLHttpRequest, settings: ZeptoAjaxSettings) => boolean;
|
||||
success?: (data: any, status: string, xhr: XMLHttpRequest) => void;
|
||||
error?: (xhr: XMLHttpRequest, errorType: string, error: Error) => void;
|
||||
|
||||
Reference in New Issue
Block a user