deeke-script-app 1.7.7 → 1.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@deekeScript/@type/Class/Global.d.ts +1 -1
- package/@deekeScript/@type/Class/Rect.d.ts +16 -16
- package/@deekeScript/@type/Class/UiSelector.d.ts +201 -201
- package/@deekeScript/@type/Class/WebSocket.d.ts +49 -49
- package/@deekeScript/@type/interface/Access.d.ts +174 -141
- package/@deekeScript/@type/interface/App.d.ts +101 -101
- package/@deekeScript/@type/interface/DeekeScriptJson.d.ts +13 -13
- package/@deekeScript/@type/interface/Device.d.ts +233 -212
- package/@deekeScript/@type/interface/Encrypt.d.ts +58 -58
- package/@deekeScript/@type/interface/Engines.d.ts +39 -39
- package/@deekeScript/@type/interface/Files.d.ts +283 -283
- package/@deekeScript/@type/interface/FloatDialogs.d.ts +47 -47
- package/@deekeScript/@type/interface/ForegroundServiceBridge.d.ts +31 -31
- package/@deekeScript/@type/interface/Hid.d.ts +342 -342
- package/@deekeScript/@type/interface/Http.d.ts +94 -94
- package/@deekeScript/@type/interface/Images.d.ts +71 -71
- package/@deekeScript/@type/interface/Java.d.ts +7 -7
- package/@deekeScript/@type/interface/KeyBoards.d.ts +54 -54
- package/@deekeScript/@type/interface/Log.d.ts +16 -16
- package/@deekeScript/@type/interface/MediaStore.d.ts +146 -146
- package/@deekeScript/@type/interface/NotificationBridge.d.ts +28 -28
- package/@deekeScript/@type/interface/SocketIOClient.d.ts +76 -76
- package/@deekeScript/@type/interface/Storage.d.ts +119 -119
- package/@deekeScript/@type/interface/System.d.ts +132 -120
- package/@deekeScript/@type/interface/UiObject.d.ts +202 -202
- package/README.md +67 -67
- package/deekeScript.json +672 -670
- package/deekeScript.schema.json +686 -681
- package/deekeScriptZipBuild +48 -48
- package/gulpfile +17 -17
- package/images/test/statistics.png +0 -0
- package/init +32 -32
- package/jsconfig.json +11 -11
- package/package.json +43 -43
- package/script/statistics/statistics.js +120 -120
- package/script/task/douyin_zan.js +37 -37
- package/script/task/dy.js +6 -6
- package/script/task/dyApp.js +6 -6
- package/script/task/tool.js +9 -9
- package/script/task.html +4 -4
- package/src/statistics/statistics.js +120 -120
- package/src/task/douyin_zan.js +89 -89
- package/src/task/dy.js +14 -14
- package/src/task/dyApp.js +7 -7
- package/src/task/tool.js +19 -19
- package/src/task.html +4 -4
- package/test.json +132 -132
- package/uglify-config.json +15 -15
- package/update-types.js +118 -118
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
var Http: Http;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
interface Http {
|
|
6
|
-
/**
|
|
7
|
-
* post请求
|
|
8
|
-
* @param url 请求地址
|
|
9
|
-
* @param json 请求内容
|
|
10
|
-
* @param headers 请求头n的请求头,如:{"Content-Type":"application/json"}
|
|
11
|
-
*/
|
|
12
|
-
public post(url: string, json: object, headers?: object): string | null;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* get请求
|
|
16
|
-
* @param url 请求地址
|
|
17
|
-
* @param headers 请求头
|
|
18
|
-
*/
|
|
19
|
-
public get(url: string, headers: object): string | null;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @param url 请求地址
|
|
24
|
-
* @param files
|
|
25
|
-
* @param params
|
|
26
|
-
* @param httpCallback
|
|
27
|
-
*/
|
|
28
|
-
public postFile(url: string, files: string[], params: object, httpCallback: {
|
|
29
|
-
success: (response: any) => void,
|
|
30
|
-
fail: (response: any) => void
|
|
31
|
-
}): void;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* 下载文件
|
|
36
|
-
* @param url 下载链接
|
|
37
|
-
* @param destPath 保存路径(含文件名称)
|
|
38
|
-
* @param headers 请求头
|
|
39
|
-
*/
|
|
40
|
-
public download(url: string, destPath: string, headers?: object): string | null;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* 设置连接超时时间
|
|
44
|
-
* @param seconds 超时时间(秒),默认10秒
|
|
45
|
-
*/
|
|
46
|
-
public setConnectTimeout(seconds: number): void;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* 设置读取超时时间
|
|
50
|
-
* @param seconds 超时时间(秒),默认30秒
|
|
51
|
-
*/
|
|
52
|
-
public setReadTimeout(seconds: number): void;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* 设置写入超时时间
|
|
56
|
-
* @param seconds 超时时间(秒),默认30秒
|
|
57
|
-
*/
|
|
58
|
-
public setWriteTimeout(seconds: number): void;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* 设置所有超时时间
|
|
62
|
-
* @param connectSeconds 连接超时时间(秒)
|
|
63
|
-
* @param readSeconds 读取超时时间(秒)
|
|
64
|
-
* @param writeSeconds 写入超时时间(秒)
|
|
65
|
-
*/
|
|
66
|
-
public setTimeout(connectSeconds: number, readSeconds: number, writeSeconds: number): void;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* 设置所有超时时间为相同的值
|
|
70
|
-
* @param seconds 超时时间(秒),将应用于连接、读取和写入
|
|
71
|
-
*/
|
|
72
|
-
public setTimeout(seconds: number): void;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* 流式POST请求(支持Server-Sent Events等流式输出)
|
|
76
|
-
* @param url 请求URL
|
|
77
|
-
* @param json 请求体JSON对象
|
|
78
|
-
* @param headers 请求头(可选)
|
|
79
|
-
* @param onData 数据回调函数,每收到一行数据时调用,参数为数据字符串
|
|
80
|
-
* @param onError 错误回调函数,发生错误时调用,参数为错误信息
|
|
81
|
-
*/
|
|
82
|
-
public postStream(url: string, json: object, headers: object, onData: (data: string) => void, onError: (error: string) => void): void;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* 流式POST请求(支持Server-Sent Events等流式输出)
|
|
86
|
-
* @param url 请求URL
|
|
87
|
-
* @param json 请求体JSON对象
|
|
88
|
-
* @param onData 数据回调函数,每收到一行数据时调用,参数为数据字符串
|
|
89
|
-
* @param onError 错误回调函数,发生错误时调用,参数为错误信息
|
|
90
|
-
*/
|
|
91
|
-
public postStream(url: string, json: object, onData: (data: string) => void, onError: (error: string) => void): void;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export { };
|
|
1
|
+
declare global {
|
|
2
|
+
var Http: Http;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
interface Http {
|
|
6
|
+
/**
|
|
7
|
+
* post请求
|
|
8
|
+
* @param url 请求地址
|
|
9
|
+
* @param json 请求内容
|
|
10
|
+
* @param headers 请求头n的请求头,如:{"Content-Type":"application/json"}
|
|
11
|
+
*/
|
|
12
|
+
public post(url: string, json: object, headers?: object): string | null;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* get请求
|
|
16
|
+
* @param url 请求地址
|
|
17
|
+
* @param headers 请求头
|
|
18
|
+
*/
|
|
19
|
+
public get(url: string, headers: object): string | null;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @param url 请求地址
|
|
24
|
+
* @param files
|
|
25
|
+
* @param params
|
|
26
|
+
* @param httpCallback
|
|
27
|
+
*/
|
|
28
|
+
public postFile(url: string, files: string[], params: object, httpCallback: {
|
|
29
|
+
success: (response: any) => void,
|
|
30
|
+
fail: (response: any) => void
|
|
31
|
+
}): void;
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* 下载文件
|
|
36
|
+
* @param url 下载链接
|
|
37
|
+
* @param destPath 保存路径(含文件名称)
|
|
38
|
+
* @param headers 请求头
|
|
39
|
+
*/
|
|
40
|
+
public download(url: string, destPath: string, headers?: object): string | null;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* 设置连接超时时间
|
|
44
|
+
* @param seconds 超时时间(秒),默认10秒
|
|
45
|
+
*/
|
|
46
|
+
public setConnectTimeout(seconds: number): void;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* 设置读取超时时间
|
|
50
|
+
* @param seconds 超时时间(秒),默认30秒
|
|
51
|
+
*/
|
|
52
|
+
public setReadTimeout(seconds: number): void;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* 设置写入超时时间
|
|
56
|
+
* @param seconds 超时时间(秒),默认30秒
|
|
57
|
+
*/
|
|
58
|
+
public setWriteTimeout(seconds: number): void;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* 设置所有超时时间
|
|
62
|
+
* @param connectSeconds 连接超时时间(秒)
|
|
63
|
+
* @param readSeconds 读取超时时间(秒)
|
|
64
|
+
* @param writeSeconds 写入超时时间(秒)
|
|
65
|
+
*/
|
|
66
|
+
public setTimeout(connectSeconds: number, readSeconds: number, writeSeconds: number): void;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* 设置所有超时时间为相同的值
|
|
70
|
+
* @param seconds 超时时间(秒),将应用于连接、读取和写入
|
|
71
|
+
*/
|
|
72
|
+
public setTimeout(seconds: number): void;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* 流式POST请求(支持Server-Sent Events等流式输出)
|
|
76
|
+
* @param url 请求URL
|
|
77
|
+
* @param json 请求体JSON对象
|
|
78
|
+
* @param headers 请求头(可选)
|
|
79
|
+
* @param onData 数据回调函数,每收到一行数据时调用,参数为数据字符串
|
|
80
|
+
* @param onError 错误回调函数,发生错误时调用,参数为错误信息
|
|
81
|
+
*/
|
|
82
|
+
public postStream(url: string, json: object, headers: object, onData: (data: string) => void, onError: (error: string) => void): void;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* 流式POST请求(支持Server-Sent Events等流式输出)
|
|
86
|
+
* @param url 请求URL
|
|
87
|
+
* @param json 请求体JSON对象
|
|
88
|
+
* @param onData 数据回调函数,每收到一行数据时调用,参数为数据字符串
|
|
89
|
+
* @param onError 错误回调函数,发生错误时调用,参数为错误信息
|
|
90
|
+
*/
|
|
91
|
+
public postStream(url: string, json: object, onData: (data: string) => void, onError: (error: string) => void): void;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export { };
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
var Images: Images;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
interface Mat {
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
interface Point {
|
|
9
|
-
x: number;
|
|
10
|
-
y: number;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
interface TextAndRegion {
|
|
14
|
-
text: string;
|
|
15
|
-
rect: Rect;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
interface Images {
|
|
19
|
-
public getMat(imageFile: string): Mat;
|
|
20
|
-
|
|
21
|
-
public findOne(source: Mat, template: Mat, threshold: number): Point;
|
|
22
|
-
|
|
23
|
-
public find(source: Mat, template: Mat, threshold: number): Point[];
|
|
24
|
-
|
|
25
|
-
public capture(): string;
|
|
26
|
-
|
|
27
|
-
public getColor(imageFile: string, pixelX: number, pixelY: number): string;
|
|
28
|
-
|
|
29
|
-
public findColor(imageFile: string, color: string): Point[];
|
|
30
|
-
|
|
31
|
-
public findColor(imageFile: string, startColor: string, endColor: string): Point[];
|
|
32
|
-
|
|
33
|
-
public crop(imageFile: string, left: number, top: number, width: number, height: number): string;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @param imageFile 图片文件路径
|
|
38
|
-
* @param multiple 缩放倍数
|
|
39
|
-
* @throws Error 当参数非法时或者图片文件不存在时抛出异常
|
|
40
|
-
*/
|
|
41
|
-
public scale(imageFile: string, multiple: number): string;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* 返回图片的文本和区域
|
|
45
|
-
* @param imageFile 图片文件路径
|
|
46
|
-
* @throws Error 当图像识别失败或参数非法时
|
|
47
|
-
*/
|
|
48
|
-
public getTextAndRegion(imageFile: string): TextAndRegion[];
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* 查找文本位置
|
|
52
|
-
* @param imageFile 图片文件路径
|
|
53
|
-
* @param keyword 查找的文本
|
|
54
|
-
* @throws Error 当图像识别失败或参数非法时
|
|
55
|
-
*/
|
|
56
|
-
public findTextPosition(imageFile: string, keyword: string): Rect[];
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* 在指定区域内查找文本。
|
|
60
|
-
* @param imageFile 图片文件路径
|
|
61
|
-
* @param left 区域左边界
|
|
62
|
-
* @param top 区域上边界
|
|
63
|
-
* @param width 区域宽度
|
|
64
|
-
* @param height 区域高度
|
|
65
|
-
* @returns 识别出的文本数组
|
|
66
|
-
* @throws Error 当图像识别失败或参数非法时
|
|
67
|
-
*/
|
|
68
|
-
public findTextInRegion(imageFile: string, left: number, top: number, width: number, height: number): string[];
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export { };
|
|
1
|
+
declare global {
|
|
2
|
+
var Images: Images;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
interface Mat {
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface Point {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface TextAndRegion {
|
|
14
|
+
text: string;
|
|
15
|
+
rect: Rect;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
interface Images {
|
|
19
|
+
public getMat(imageFile: string): Mat;
|
|
20
|
+
|
|
21
|
+
public findOne(source: Mat, template: Mat, threshold: number): Point;
|
|
22
|
+
|
|
23
|
+
public find(source: Mat, template: Mat, threshold: number): Point[];
|
|
24
|
+
|
|
25
|
+
public capture(): string;
|
|
26
|
+
|
|
27
|
+
public getColor(imageFile: string, pixelX: number, pixelY: number): string;
|
|
28
|
+
|
|
29
|
+
public findColor(imageFile: string, color: string): Point[];
|
|
30
|
+
|
|
31
|
+
public findColor(imageFile: string, startColor: string, endColor: string): Point[];
|
|
32
|
+
|
|
33
|
+
public crop(imageFile: string, left: number, top: number, width: number, height: number): string;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @param imageFile 图片文件路径
|
|
38
|
+
* @param multiple 缩放倍数
|
|
39
|
+
* @throws Error 当参数非法时或者图片文件不存在时抛出异常
|
|
40
|
+
*/
|
|
41
|
+
public scale(imageFile: string, multiple: number): string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* 返回图片的文本和区域
|
|
45
|
+
* @param imageFile 图片文件路径
|
|
46
|
+
* @throws Error 当图像识别失败或参数非法时
|
|
47
|
+
*/
|
|
48
|
+
public getTextAndRegion(imageFile: string): TextAndRegion[];
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* 查找文本位置
|
|
52
|
+
* @param imageFile 图片文件路径
|
|
53
|
+
* @param keyword 查找的文本
|
|
54
|
+
* @throws Error 当图像识别失败或参数非法时
|
|
55
|
+
*/
|
|
56
|
+
public findTextPosition(imageFile: string, keyword: string): Rect[];
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* 在指定区域内查找文本。
|
|
60
|
+
* @param imageFile 图片文件路径
|
|
61
|
+
* @param left 区域左边界
|
|
62
|
+
* @param top 区域上边界
|
|
63
|
+
* @param width 区域宽度
|
|
64
|
+
* @param height 区域高度
|
|
65
|
+
* @returns 识别出的文本数组
|
|
66
|
+
* @throws Error 当图像识别失败或参数非法时
|
|
67
|
+
*/
|
|
68
|
+
public findTextInRegion(imageFile: string, left: number, top: number, width: number, height: number): string[];
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export { };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
var java: any;
|
|
3
|
-
var Packages: any;
|
|
4
|
-
function JavaImporter(...packages: any[]): any;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export { };
|
|
1
|
+
declare global {
|
|
2
|
+
var java: any;
|
|
3
|
+
var Packages: any;
|
|
4
|
+
function JavaImporter(...packages: any[]): any;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export { };
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
global {
|
|
2
|
-
var KeyBoards: KeyBoards;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
interface KeyBoards {
|
|
6
|
-
/**
|
|
7
|
-
* DeekeScript输入法是否启用(未设置为默认,也返回true,但是此时不能输入和删除)
|
|
8
|
-
*/
|
|
9
|
-
public isEnabled(): boolean;
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* 判断DeekeScript输入法是否设置为默认,是的话,则可以使用输入和删除方法
|
|
13
|
-
*/
|
|
14
|
-
public canInput():boolean;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* 往文本框追加字符串
|
|
18
|
-
*/
|
|
19
|
-
public input(str: string): boolean;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* 删除文本框最后一个字符
|
|
23
|
-
*/
|
|
24
|
-
public delete():boolean;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* 隐藏键盘
|
|
28
|
-
*/
|
|
29
|
-
public hide(): boolean;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* 发送按键事件,支持各种按键
|
|
33
|
-
* 注意:输入法只能发送文本输入相关的按键,系统级按键(如HOME、BACK、POWER等)无法通过输入法发送
|
|
34
|
-
* @param key 按键代码,可以是字符串(如 "ENTER")或数字(如 KeyBoards.KEYCODE.ENTER)
|
|
35
|
-
*/
|
|
36
|
-
public pressKey(key: string | number): boolean;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* 发送Enter键(回车键)
|
|
40
|
-
*/
|
|
41
|
-
public pressEnter(): boolean;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* 发送Tab键(制表符)
|
|
45
|
-
*/
|
|
46
|
-
public pressTab(): boolean;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* 发送空格键
|
|
50
|
-
*/
|
|
51
|
-
public pressSpace(): boolean;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export { };
|
|
1
|
+
global {
|
|
2
|
+
var KeyBoards: KeyBoards;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
interface KeyBoards {
|
|
6
|
+
/**
|
|
7
|
+
* DeekeScript输入法是否启用(未设置为默认,也返回true,但是此时不能输入和删除)
|
|
8
|
+
*/
|
|
9
|
+
public isEnabled(): boolean;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 判断DeekeScript输入法是否设置为默认,是的话,则可以使用输入和删除方法
|
|
13
|
+
*/
|
|
14
|
+
public canInput():boolean;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* 往文本框追加字符串
|
|
18
|
+
*/
|
|
19
|
+
public input(str: string): boolean;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* 删除文本框最后一个字符
|
|
23
|
+
*/
|
|
24
|
+
public delete():boolean;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* 隐藏键盘
|
|
28
|
+
*/
|
|
29
|
+
public hide(): boolean;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* 发送按键事件,支持各种按键
|
|
33
|
+
* 注意:输入法只能发送文本输入相关的按键,系统级按键(如HOME、BACK、POWER等)无法通过输入法发送
|
|
34
|
+
* @param key 按键代码,可以是字符串(如 "ENTER")或数字(如 KeyBoards.KEYCODE.ENTER)
|
|
35
|
+
*/
|
|
36
|
+
public pressKey(key: string | number): boolean;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* 发送Enter键(回车键)
|
|
40
|
+
*/
|
|
41
|
+
public pressEnter(): boolean;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* 发送Tab键(制表符)
|
|
45
|
+
*/
|
|
46
|
+
public pressTab(): boolean;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* 发送空格键
|
|
50
|
+
*/
|
|
51
|
+
public pressSpace(): boolean;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export { };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
global {
|
|
2
|
-
var Log: log;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
interface log {
|
|
6
|
-
/**
|
|
7
|
-
* 全局设置日志输出文件
|
|
8
|
-
*/
|
|
9
|
-
public setFile(filename: string): boolean;
|
|
10
|
-
/**
|
|
11
|
-
* 输出日志内容
|
|
12
|
-
*/
|
|
13
|
-
public log(...obj: object): void;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export { };
|
|
1
|
+
global {
|
|
2
|
+
var Log: log;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
interface log {
|
|
6
|
+
/**
|
|
7
|
+
* 全局设置日志输出文件
|
|
8
|
+
*/
|
|
9
|
+
public setFile(filename: string): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* 输出日志内容
|
|
12
|
+
*/
|
|
13
|
+
public log(...obj: object): void;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { };
|