ms-types 0.1.21 → 0.1.22

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.
Files changed (45) hide show
  1. package/package.json +20 -20
  2. package/types/action.d.ts +298 -298
  3. package/types/{appleOcr.d.ts → appleocr.d.ts} +102 -102
  4. package/types/config.d.ts +54 -54
  5. package/types/device.d.ts +105 -105
  6. package/types/global.d.ts +181 -181
  7. package/types/hid.d.ts +289 -289
  8. package/types/hotUpdate.d.ts +104 -104
  9. package/types/http.d.ts +300 -300
  10. package/types/ime.d.ts +99 -99
  11. package/types/index.d.ts +26 -26
  12. package/types/media.d.ts +90 -90
  13. package/types/mysql.d.ts +174 -174
  14. package/types/netCard.d.ts +42 -42
  15. package/types/node.d.ts +279 -279
  16. package/types/{paddleOcr.d.ts → paddleocr.d.ts} +73 -73
  17. package/types/pip.d.ts +51 -51
  18. package/types/system.d.ts +195 -195
  19. package/types/thread.d.ts +101 -101
  20. package/types/{tomatoOcr.d.ts → tomatoocr.d.ts} +199 -199
  21. package/types/tts.d.ts +91 -91
  22. package/types/ui.d.ts +165 -165
  23. package/types/yolo.d.ts +98 -98
  24. package/types/zh/HID/346/250/241/345/235/227.d.ts +293 -293
  25. package/types/zh/HTTP/346/250/241/345/235/227.d.ts +301 -301
  26. package/types/zh/{MySQL → MySql}/346/250/241/345/235/227.d.ts +175 -175
  27. package/types/zh/PaddleOCR/346/250/241/345/235/227.d.ts +74 -74
  28. package/types/zh/YOLO/346/250/241/345/235/227.d.ts +101 -101
  29. package/types/zh/index.d.ts +24 -24
  30. package/types/zh//345/205/250/345/261/200/346/250/241/345/235/227.d.ts +179 -179
  31. package/types/zh//345/212/250/344/275/234/346/250/241/345/235/227.d.ts +300 -300
  32. package/types/zh//345/215/241/345/257/206/346/250/241/345/235/227.d.ts +55 -55
  33. package/types/zh//345/252/222/344/275/223/346/250/241/345/235/227.d.ts +91 -91
  34. package/types/zh//345/267/245/345/205/267/346/250/241/345/235/227.d.ts +30 -30
  35. package/types/zh//346/202/254/346/265/256/347/252/227/346/250/241/345/235/227.d.ts +55 -55
  36. package/types/zh//346/226/207/345/255/227/350/275/254/350/257/255/351/237/263/346/250/241/345/235/227.d.ts +92 -92
  37. package/types/zh//347/203/255/346/233/264/346/226/260/346/250/241/345/235/227.d.ts +105 -105
  38. package/types/zh//347/263/273/347/273/237/346/250/241/345/235/227.d.ts +194 -194
  39. package/types/zh//347/272/277/347/250/213/346/250/241/345/235/227.d.ts +102 -102
  40. package/types/zh//350/212/202/347/202/271/346/250/241/345/235/227.d.ts +280 -280
  41. package/types/zh//350/213/271/346/236/234OCR.d.ts +104 -104
  42. package/types/zh//350/247/206/345/233/276/346/250/241/345/235/227.d.ts +167 -167
  43. package/types/zh//350/256/276/345/244/207/346/250/241/345/235/227.d.ts +106 -106
  44. package/types/zh//350/276/223/345/205/245/346/263/225/346/250/241/345/235/227.d.ts +100 -100
  45. package/types/zh//351/205/215/347/275/256/346/250/241/345/235/227.d.ts +56 -56
package/types/ime.d.ts CHANGED
@@ -1,99 +1,99 @@
1
- /**
2
- * 输入法模块 包含输入法操作、输入法内容读写等功能
3
- */
4
- declare namespace ime {
5
- /**
6
- * 检查输入法是否正常工作 键盘是否已弹出
7
- * @returns {boolean} 如果输入法键盘是否已弹出返回 true,否则返回 false
8
- * @example
9
- * if (ime.isOk()) {
10
- * logi("输入法已启动")
11
- * }
12
- */
13
- function isOk(): boolean;
14
- /**
15
- * 获取当前输入框的文本内容
16
- * @returns {string} 当前输入框的完整文本
17
- * @example
18
- * const text = ime.getText()
19
- * logi(text)
20
- */
21
- function getText(): string;
22
- /**
23
- * 清空当前输入框的文本内容
24
- * @example
25
- * ime.clearText()
26
- */
27
- function clearText(): boolean;
28
- /**
29
- * 模拟输入文本
30
- * @param {string} text 要输入的文本
31
- * @returns {string} 输入后的文本内容 失败返回空字符串
32
- * @example
33
- * const text = ime.input("hello")
34
- * logi(text)
35
- */
36
- function input(text: string): string;
37
- /**
38
- * 模拟粘贴文本
39
- * @param {string} text 要粘贴的文本
40
- * @returns {string} 粘贴后的文本内容 失败返回空字符串
41
- * @example
42
- * const text = ime.paste("hello")
43
- * logi(text)
44
- */
45
- function paste(text?: string): string;
46
- /**
47
- * 模拟删除键
48
- * @returns {string} 如果为空,代表输入框无数据,如果不为空,代表输入框剩余数据
49
- * @example
50
- * const text = ime.pressDel()
51
- * logi(text)
52
- */
53
- function pressDel(): string;
54
- /**
55
- * 模拟回车键
56
- * @returns {boolean} 如果成功返回 true,否则返回 false
57
- * @example
58
- * if (ime.pressEnter()) {
59
- * logi("回车键按下")
60
- * }
61
- */
62
- function pressEnter(): boolean;
63
- /**
64
- * 隐藏键盘
65
- * @returns {boolean} 如果成功返回 true,否则返回 false
66
- * @example
67
- * if (ime.dismiss()) {
68
- * logi("键盘已隐藏")
69
- * }
70
- */
71
- function dismiss(): boolean;
72
- /**
73
- * 获取剪贴板内容
74
- * @returns {string} 剪贴板内容
75
- * @example
76
- * const text = ime.getClipboard()
77
- * logi(text)
78
- */
79
- function getClipboard(): string;
80
- /**
81
- * 设置剪贴板内容
82
- * @param {string} text 要设置的剪贴板内容 键盘显示时才能设置
83
- * @returns {boolean} 如果成功返回 true,否则返回 false
84
- * @example
85
- * if (ime.setClipboard("hello")) {
86
- * logi("剪贴板内容已设置")
87
- * }
88
- */
89
- function setClipboard(text: string): boolean;
90
- /**
91
- * 切换键盘
92
- * @returns {boolean} 如果成功返回 true,否则返回 false
93
- * @example
94
- * if (ime.switchKeyboard()) {
95
- * logi("键盘已切换")
96
- * }
97
- */
98
- function switchKeyboard(): boolean;
99
- }
1
+ /**
2
+ * 输入法模块 包含输入法操作、输入法内容读写等功能
3
+ */
4
+ declare namespace ime {
5
+ /**
6
+ * 检查输入法是否正常工作 键盘是否已弹出
7
+ * @returns {boolean} 如果输入法键盘是否已弹出返回 true,否则返回 false
8
+ * @example
9
+ * if (ime.isOk()) {
10
+ * logi("输入法已启动")
11
+ * }
12
+ */
13
+ function isOk(): boolean;
14
+ /**
15
+ * 获取当前输入框的文本内容
16
+ * @returns {string} 当前输入框的完整文本
17
+ * @example
18
+ * const text = ime.getText()
19
+ * logi(text)
20
+ */
21
+ function getText(): string;
22
+ /**
23
+ * 清空当前输入框的文本内容
24
+ * @example
25
+ * ime.clearText()
26
+ */
27
+ function clearText(): boolean;
28
+ /**
29
+ * 模拟输入文本
30
+ * @param {string} text 要输入的文本
31
+ * @returns {string} 输入后的文本内容 失败返回空字符串
32
+ * @example
33
+ * const text = ime.input("hello")
34
+ * logi(text)
35
+ */
36
+ function input(text: string): string;
37
+ /**
38
+ * 模拟粘贴文本
39
+ * @param {string} text 要粘贴的文本
40
+ * @returns {string} 粘贴后的文本内容 失败返回空字符串
41
+ * @example
42
+ * const text = ime.paste("hello")
43
+ * logi(text)
44
+ */
45
+ function paste(text?: string): string;
46
+ /**
47
+ * 模拟删除键
48
+ * @returns {string} 如果为空,代表输入框无数据,如果不为空,代表输入框剩余数据
49
+ * @example
50
+ * const text = ime.pressDel()
51
+ * logi(text)
52
+ */
53
+ function pressDel(): string;
54
+ /**
55
+ * 模拟回车键
56
+ * @returns {boolean} 如果成功返回 true,否则返回 false
57
+ * @example
58
+ * if (ime.pressEnter()) {
59
+ * logi("回车键按下")
60
+ * }
61
+ */
62
+ function pressEnter(): boolean;
63
+ /**
64
+ * 隐藏键盘
65
+ * @returns {boolean} 如果成功返回 true,否则返回 false
66
+ * @example
67
+ * if (ime.dismiss()) {
68
+ * logi("键盘已隐藏")
69
+ * }
70
+ */
71
+ function dismiss(): boolean;
72
+ /**
73
+ * 获取剪贴板内容
74
+ * @returns {string} 剪贴板内容
75
+ * @example
76
+ * const text = ime.getClipboard()
77
+ * logi(text)
78
+ */
79
+ function getClipboard(): string;
80
+ /**
81
+ * 设置剪贴板内容
82
+ * @param {string} text 要设置的剪贴板内容 键盘显示时才能设置
83
+ * @returns {boolean} 如果成功返回 true,否则返回 false
84
+ * @example
85
+ * if (ime.setClipboard("hello")) {
86
+ * logi("剪贴板内容已设置")
87
+ * }
88
+ */
89
+ function setClipboard(text: string): boolean;
90
+ /**
91
+ * 切换键盘
92
+ * @returns {boolean} 如果成功返回 true,否则返回 false
93
+ * @example
94
+ * if (ime.switchKeyboard()) {
95
+ * logi("键盘已切换")
96
+ * }
97
+ */
98
+ function switchKeyboard(): boolean;
99
+ }
package/types/index.d.ts CHANGED
@@ -1,26 +1,26 @@
1
- /// <reference path="action.d.ts" />
2
- /// <reference path="appleOcr.d.ts" />
3
- /// <reference path="config.d.ts" />
4
- /// <reference path="device.d.ts" />
5
- /// <reference path="file.d.ts" />
6
- /// <reference path="global.d.ts" />
7
- /// <reference path="hid.d.ts" />
8
- /// <reference path="hotUpdate.d.ts" />
9
- /// <reference path="http.d.ts" />
10
- /// <reference path="image.d.ts" />
11
- /// <reference path="ime.d.ts" />
12
- /// <reference path="logger.d.ts" />
13
- /// <reference path="media.d.ts" />
14
- /// <reference path="mysql.d.ts" />
15
- /// <reference path="netCard.d.ts" />
16
- /// <reference path="node.d.ts" />
17
- /// <reference path="paddleOcr.d.ts" />
18
- /// <reference path="pip.d.ts" />
19
- /// <reference path="system.d.ts" />
20
- /// <reference path="thread.d.ts" />
21
- /// <reference path="tomatoOcr.d.ts" />
22
- /// <reference path="tts.d.ts" />
23
- /// <reference path="ui.d.ts" />
24
- /// <reference path="utils.d.ts" />
25
- /// <reference path="yolo.d.ts" />
26
- /// <reference path="zh/index.d.ts" />
1
+ /// <reference path="action.d.ts" />
2
+ /// <reference path="appleOcr.d.ts" />
3
+ /// <reference path="config.d.ts" />
4
+ /// <reference path="device.d.ts" />
5
+ /// <reference path="file.d.ts" />
6
+ /// <reference path="global.d.ts" />
7
+ /// <reference path="hid.d.ts" />
8
+ /// <reference path="hotUpdate.d.ts" />
9
+ /// <reference path="http.d.ts" />
10
+ /// <reference path="image.d.ts" />
11
+ /// <reference path="ime.d.ts" />
12
+ /// <reference path="logger.d.ts" />
13
+ /// <reference path="media.d.ts" />
14
+ /// <reference path="mysql.d.ts" />
15
+ /// <reference path="netCard.d.ts" />
16
+ /// <reference path="node.d.ts" />
17
+ /// <reference path="paddleOcr.d.ts" />
18
+ /// <reference path="pip.d.ts" />
19
+ /// <reference path="system.d.ts" />
20
+ /// <reference path="thread.d.ts" />
21
+ /// <reference path="tomatoOcr.d.ts" />
22
+ /// <reference path="tts.d.ts" />
23
+ /// <reference path="ui.d.ts" />
24
+ /// <reference path="utils.d.ts" />
25
+ /// <reference path="yolo.d.ts" />
26
+ /// <reference path="zh/index.d.ts" />
package/types/media.d.ts CHANGED
@@ -1,90 +1,90 @@
1
- /**
2
- * 媒体模块 包含媒体操作、媒体内容读写等功能
3
- */
4
- declare namespace media {
5
- /**
6
- * 保存图像到相册
7
- * @param imageId 图像ID
8
- * @returns 是否保存成功
9
- * @example
10
- * const imageId = image.readImage("screen.png")
11
- * if (imageId) {
12
- * const saved = media.saveImageToAlbum(imageId)
13
- * if (saved) {
14
- * logi("保存成功")
15
- * }
16
- * }
17
- */
18
- function saveImageToAlbum(imageId: string): boolean;
19
-
20
- /**
21
- * 保存视频路径到相册
22
- * @param path 视频文件的路径
23
- * @returns 是否保存成功
24
- * @example
25
- * const saved = media.saveVideoToAlbumPath("video.mp4")
26
- * if (saved) {
27
- * logi("保存成功")
28
- * }
29
- */
30
- function saveVideoToAlbumPath(path: string): boolean;
31
-
32
- /**
33
- * 清空相册中的图片
34
- * @returns 是否删除成功
35
- * @example
36
- * const deleted = media.deleteAllPhotos()
37
- * if (deleted) {
38
- * logi("删除成功")
39
- * }
40
- */
41
- function deleteAllPhotos(): boolean;
42
-
43
- /**
44
- * 清空相册中的视频
45
- * @returns 是否删除成功
46
- * @example
47
- * const deleted = media.deleteAllVideos()
48
- * if (deleted) {
49
- * logi("删除成功")
50
- * }
51
- */
52
- function deleteAllVideos(): boolean;
53
-
54
- /**
55
- * 播放MP3音乐(异步播放)
56
- * @param path 文件路径
57
- * @param loop 是否循环播放
58
- * @returns 是否播放成功
59
- * @example
60
- * const played = media.playMp3("music.mp3", true)
61
- * if (played) {
62
- * logi("播放成功")
63
- * }
64
- */
65
- function playMp3(path: string, loop: boolean): boolean;
66
-
67
- /**
68
- * 停止播放mp3音乐
69
- * @returns 是否停止成功
70
- * @example
71
- * const stopped = media.stopMp3()
72
- * if (stopped) {
73
- * logi("停止成功")
74
- * }
75
- */
76
- function stopMp3(): boolean;
77
-
78
- /**
79
- * 同步播放MP3音乐(等待结束)
80
- * @param path 文件路径
81
- * @param loop 是否循环播放
82
- * @returns 是否播放成功
83
- * @example
84
- * const played = media.playMp3WaitEnd("music.mp3", true)
85
- * if (played) {
86
- * logi("播放成功")
87
- * }
88
- */
89
- function playMp3WaitEnd(path: string, loop: boolean): boolean;
90
- }
1
+ /**
2
+ * 媒体模块 包含媒体操作、媒体内容读写等功能
3
+ */
4
+ declare namespace media {
5
+ /**
6
+ * 保存图像到相册
7
+ * @param imageId 图像ID
8
+ * @returns 是否保存成功
9
+ * @example
10
+ * const imageId = image.readImage("screen.png")
11
+ * if (imageId) {
12
+ * const saved = media.saveImageToAlbum(imageId)
13
+ * if (saved) {
14
+ * logi("保存成功")
15
+ * }
16
+ * }
17
+ */
18
+ function saveImageToAlbum(imageId: string): boolean;
19
+
20
+ /**
21
+ * 保存视频路径到相册
22
+ * @param path 视频文件的路径
23
+ * @returns 是否保存成功
24
+ * @example
25
+ * const saved = media.saveVideoToAlbumPath("video.mp4")
26
+ * if (saved) {
27
+ * logi("保存成功")
28
+ * }
29
+ */
30
+ function saveVideoToAlbumPath(path: string): boolean;
31
+
32
+ /**
33
+ * 清空相册中的图片
34
+ * @returns 是否删除成功
35
+ * @example
36
+ * const deleted = media.deleteAllPhotos()
37
+ * if (deleted) {
38
+ * logi("删除成功")
39
+ * }
40
+ */
41
+ function deleteAllPhotos(): boolean;
42
+
43
+ /**
44
+ * 清空相册中的视频
45
+ * @returns 是否删除成功
46
+ * @example
47
+ * const deleted = media.deleteAllVideos()
48
+ * if (deleted) {
49
+ * logi("删除成功")
50
+ * }
51
+ */
52
+ function deleteAllVideos(): boolean;
53
+
54
+ /**
55
+ * 播放MP3音乐(异步播放)
56
+ * @param path 文件路径
57
+ * @param loop 是否循环播放
58
+ * @returns 是否播放成功
59
+ * @example
60
+ * const played = media.playMp3("music.mp3", true)
61
+ * if (played) {
62
+ * logi("播放成功")
63
+ * }
64
+ */
65
+ function playMp3(path: string, loop: boolean): boolean;
66
+
67
+ /**
68
+ * 停止播放mp3音乐
69
+ * @returns 是否停止成功
70
+ * @example
71
+ * const stopped = media.stopMp3()
72
+ * if (stopped) {
73
+ * logi("停止成功")
74
+ * }
75
+ */
76
+ function stopMp3(): boolean;
77
+
78
+ /**
79
+ * 同步播放MP3音乐(等待结束)
80
+ * @param path 文件路径
81
+ * @param loop 是否循环播放
82
+ * @returns 是否播放成功
83
+ * @example
84
+ * const played = media.playMp3WaitEnd("music.mp3", true)
85
+ * if (played) {
86
+ * logi("播放成功")
87
+ * }
88
+ */
89
+ function playMp3WaitEnd(path: string, loop: boolean): boolean;
90
+ }