/
index.d.ts
216 lines (216 loc) · 4.69 KB
/
index.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
declare var ace: any;
declare var options: any;
declare var prettydiff: pd;
declare module NodeJS {
interface Global {
sparser: any;
prettydiff: any
}
}
type api = "any" | "dom" | "node";
type codes = [string, number, number, number, number];
type languageAuto = [string, string, string];
type lexer = "any" | "markup" | "script" | "style";
type mode = "beautify" | "diff" | "minify" | "parse";
type qualifier = "begins" | "contains" | "ends" | "file begins" | "file contains" | "file ends" | "file is" | "file not" | "file not contains" | "filesystem contains" | "filesystem not contains" | "is" | "not" | "not contains";
interface commandList {
[key: string]: {
description: string;
example: {
code: string;
defined: string;
}[];
}
}
interface compareStore extends Array<[number, number]>{
[index:number]: [number, number];
}
interface data {
begin: number[];
ender: number[];
lexer: string[];
lines: number[];
stack: string[];
token: string[];
types: string[];
}
interface diffJSON extends Array<["+"|"-"|"=", string]|["r", string, string]> {
[index:number]: ["+"|"-"|"=", string]|["r", string, string];
}
interface diffmeta {
differences: number;
lines: number;
}
interface diffStatus {
diff: boolean;
source: boolean;
}
interface difftable {
[key: string]: [number, number];
}
interface diffview {
(): [string, number, number]
}
interface dom {
[key: string]: any;
}
interface domMethods {
app: {
[key: string]: any;
};
event: {
[key: string]: any;
};
}
interface externalIndex {
[key: string]: number;
}
interface finalFile {
css: {
color: {
canvas: string;
shadow: string;
white: string;
};
global: string;
reports: string;
};
html: {
body: string;
color: string;
head: string;
htmlEnd: string;
intro: string;
scriptEnd: string;
scriptStart: string;
};
order: string[];
script: {
beautify: string;
diff: string;
minimal: string;
};
}
interface language {
auto(sample:string, defaultLang:string): languageAuto;
nameproper(input:string): string;
setlexer(input:string):string;
}
interface library {
(): string;
}
interface meta {
error: string;
lang: [string, string, string];
time: string;
insize: number;
outsize: number;
difftotal: number;
difflines: number;
}
interface modifyOps {
end: string;
injectFlag: string;
start: string;
}
interface nodeCopyParams {
callback:Function;
destination:string;
exclusions:string[];
target:string;
}
interface nodeError extends Error {
code: string;
}
interface nodeFileProps {
atime: number;
mode: number;
mtime: number;
}
interface nodeLists {
emptyline: boolean;
heading: string;
obj: any;
property: "eachkey" | string;
total: boolean;
}
interface opcodes extends Array<codes> {
[index: number]: codes;
}
interface option {
api: api;
default: boolean | number | string;
definition: string;
label: string;
lexer: lexer;
mode: "any" | mode;
type: "boolean" | "number" | "string";
values?: {
[key: string]: string;
}
}
interface optionDef {
[key:string]: option;
}
interface optionFunctions {
definitions?: {};
}
interface perform {
codeLength: number;
diff: string;
end: [number, number];
index: number;
source: string;
start: [number, number];
store: number[];
test: boolean;
}
interface pd {
(meta?): string;
api: any;
beautify: any;
end: number;
iterator: number;
meta: meta;
minify: any;
options: any,
saveAs?: Function;
scopes: scriptScopes;
sparser: any;
start: number;
version: version;
}
interface readDirectory {
callback: Function;
exclusions: string[];
path: string;
recursive: boolean;
symbolic: boolean;
}
interface record {
begin: number;
ender: number;
lexer: string;
lines: number;
stack: string;
token: string;
types: string;
}
interface scriptScopes extends Array<[string, number]>{
[index:number]: [string, number];
}
interface simulationItem {
artifact?: string;
command: string;
file?: string;
qualifier: qualifier;
test: string;
}
interface version {
date: string;
number: string;
parse: string;
}
interface Window {
sparser: any;
}