-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypings.d.ts
More file actions
48 lines (48 loc) · 1.22 KB
/
typings.d.ts
File metadata and controls
48 lines (48 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/// <reference types="jquery"/>
type error = "data_duplicate" | "data_validation" | "unknown" | string;
type errorType = "fatal" | "warning" | "notice";
interface AjaxResponse{
[key: string]: any;
status:boolean;
error?: AjaxError[];
}
interface AjaxError{
input?:string;
error:error;
type:errorType;
}
interface AjaxSettings{
accepts?: any;
async?: boolean;
beforeSend? (jqXHR: JQueryXHR, settings: JQueryAjaxSettings): any;
cache?: boolean;
complete? (jqXHR: JQueryXHR, textStatus: string): any;
contents?: { [key: string]: any; };
contentType?: any;
context?: any;
converters?: { [key: string]: any; };
crossDomain?: boolean;
data?: any;
dataFilter? (data: any, ty: any): any;
dataType?: string;
error? (error:AjaxError, jqXHR: JQueryXHR):void;
global?: boolean;
headers?: { [key: string]: any; };
isLocal?: boolean;
jsonp?: any;
jsonpCallback?: any;
method?: string;
mimeType?: string;
password?: string;
processData?: boolean;
scriptCharset?: string;
statusCode?: { [key: string]: any; };
success? (data: AjaxResponse, textStatus: string, jqXHR: JQueryXHR): any;
timeout?: number;
traditional?: boolean;
type?: string;
url?: string;
username?: string;
xhr?: any;
xhrFields?: { [key: string]: any; };
}