-
Notifications
You must be signed in to change notification settings - Fork 117
/
main.d.ts
37 lines (32 loc) · 913 Bytes
/
main.d.ts
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
declare let sandbox: Window;
declare let ScriptFlag: string;
declare let cloneInto: ((detail: any, view: any) => any) | undefined;
declare module "@App/types/scriptcat.d.ts";
declare module "*.tpl";
declare namespace GMSend {
interface XHRDetails {
method?: "GET" | "HEAD" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS";
url: string;
headers?: { [key: string]: string };
data?: string | Array<XHRFormData>;
cookie?: string;
binary?: boolean;
timeout?: number;
context?: CONTEXT_TYPE;
responseType?: "text" | "arraybuffer" | "blob" | "json";
overrideMimeType?: string;
anonymous?: boolean;
fetch?: boolean;
user?: string;
password?: string;
nocache?: boolean;
dataType?: "FormData" | "Blob";
maxRedirects?: number;
}
interface XHRFormData {
type?: "file" | "text";
key: string;
val: string;
filename?: string;
}
}