Fix ajaxSettings

This commit is contained in:
MIZUNE Pine 2014-11-08 03:42:15 +09:00
parent b9b6d6b3d5
commit fd5dbacc76

7
zepto/zepto.d.ts vendored
View File

@ -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;