forked from alibaba/lowcode-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode-result.ts
More file actions
59 lines (58 loc) · 888 Bytes
/
code-result.ts
File metadata and controls
59 lines (58 loc) · 888 Bytes
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
/**
* 导出内容结构,文件夹
*
* @export
* @interface ResultDir
*/
export interface ResultDir {
/**
* 文件夹名称,Root 名称默认为 .
*
* @type {string}
* @memberof ResultDir
*/
name: string;
/**
* 子目录
*
* @type {ResultDir[]}
* @memberof ResultDir
*/
dirs: ResultDir[];
/**
* 文件夹内文件
*
* @type {ResultFile[]}
* @memberof ResultDir
*/
files: ResultFile[];
}
/**
* 导出内容,对文件的描述
*
* @export
* @interface ResultFile
*/
export interface ResultFile {
/**
* 文件名
*
* @type {string}
* @memberof ResultFile
*/
name: string;
/**
* 文件类型扩展名,例如 .js .less
*
* @type {string}
* @memberof ResultFile
*/
ext: string;
/**
* 文件内容
*
* @type {string}
* @memberof ResultFile
*/
content: string;
}