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
@@ -1,102 +1,102 @@
1
- /// <reference path="全局模块.d.ts" />
2
- /**
3
- * 线程模块 包含线程操作、线程回调等功能
4
- */
5
- declare namespace $线程 {
6
- /**
7
- * 异步执行线程代码
8
- * @param 线程js文件路径
9
- * @param 回调函数名称
10
- * @param 回调函数
11
- * @returns 线程名称
12
- * @example
13
- * const 线程名称 = $线程.执行异步代码("xxx_thread.js", "回调函数名称", (数据) => {
14
- * $打印信息日志(数据)
15
- * return "1111"
16
- * })
17
- *
18
- * thread.js
19
- * while (true) {
20
- * // 通知主线程并传递数据
21
- * const 回调返回值 = $线程.调用回调函数("回调函数名称", "hello world")
22
- * // 主线程返回数据
23
- * $打印信息日志(回调返回值)
24
- * $延时(1000)
25
- * }
26
- */
27
- function 执行异步代码(
28
- 线程js文件路径: 字符串,
29
- 回调函数名称: 字符串,
30
- 回调函数: (数据?: 任意类型) => 任意类型
31
- ): 字符串 | null;
32
- /**
33
- * 调用线程回调函数
34
- * @param name 回调函数名称
35
- * @param data 回调数据
36
- * @returns 回调返回值
37
- * @example
38
- * const 回调返回值 = $线程.调用回调函数("回调函数名称", "hello world")
39
- * $打印信息日志(回调返回值)
40
- */
41
- function 调用回调函数(回调函数名称: 字符串, 数据?: 任意类型): 任意类型;
42
- /**
43
- * 创建新线程
44
- * @param 线程js文件路径
45
- * @returns 线程对象
46
- * @example
47
- * const 新线程 = $线程.创建新线程("xxx_thread.js")
48
- * 新线程.添加回调函数("callback", (数据) => {
49
- * $打印信息日志(数据)
50
- * return "1111"
51
- * })
52
- */
53
- function 创建新线程(线程js文件路径: 字符串): {
54
- /**
55
- * 线程名称
56
- */
57
- name: 字符串;
58
- /**
59
- * 添加回调函数
60
- * @param 回调函数名称
61
- * @param 回调函数
62
- * @returns 是否添加成功
63
- */
64
- 添加回调函数: (
65
- 回调函数名称: 字符串,
66
- 回调函数: (数据?: 任意类型) => 任意类型
67
- ) => 布尔值;
68
- } | null;
69
- /**
70
- * 取消线程
71
- * @param 线程名称
72
- * @returns 是否取消成功
73
- * @example
74
- * const 新线程 = $线程.创建新线程("xxx_thread.js")
75
- * 新线程.添加回调函数("回调函数名称", (数据) => {
76
- * $打印信息日志(数据)
77
- * return "1111"
78
- * })
79
- * $线程.取消线程(新线程.name)
80
- */
81
- function 取消线程(线程名称: 字符串): 布尔值;
82
- /**
83
- * 检查线程是否已取消
84
- * @param 线程名称
85
- * @returns 是否已取消
86
- * @example
87
- * const 新线程 = $线程.创建新线程("xxx_thread.js")
88
- * 新线程.添加回调函数("回调函数名称", (数据) => {
89
- * $打印信息日志(数据)
90
- * return "1111"
91
- * })
92
- * $线程.是否已被取消(新线程.name)
93
- */
94
- function 是否已被取消(线程名称: 字符串): 布尔值;
95
- /**
96
- * 停止所有
97
- * @returns 是否停止成功
98
- * @example
99
- * $线程.停止所有()
100
- */
101
- function 停止所有(): 布尔值;
102
- }
1
+ /// <reference path="全局模块.d.ts" />
2
+ /**
3
+ * 线程模块 包含线程操作、线程回调等功能
4
+ */
5
+ declare namespace $线程 {
6
+ /**
7
+ * 异步执行线程代码
8
+ * @param 线程js文件路径
9
+ * @param 回调函数名称
10
+ * @param 回调函数
11
+ * @returns 线程名称
12
+ * @example
13
+ * const 线程名称 = $线程.执行异步代码("xxx_thread.js", "回调函数名称", (数据) => {
14
+ * $打印信息日志(数据)
15
+ * return "1111"
16
+ * })
17
+ *
18
+ * thread.js
19
+ * while (true) {
20
+ * // 通知主线程并传递数据
21
+ * const 回调返回值 = $线程.调用回调函数("回调函数名称", "hello world")
22
+ * // 主线程返回数据
23
+ * $打印信息日志(回调返回值)
24
+ * $延时(1000)
25
+ * }
26
+ */
27
+ function 执行异步代码(
28
+ 线程js文件路径: 字符串,
29
+ 回调函数名称: 字符串,
30
+ 回调函数: (数据?: 任意类型) => 任意类型
31
+ ): 字符串 | null;
32
+ /**
33
+ * 调用线程回调函数
34
+ * @param name 回调函数名称
35
+ * @param data 回调数据
36
+ * @returns 回调返回值
37
+ * @example
38
+ * const 回调返回值 = $线程.调用回调函数("回调函数名称", "hello world")
39
+ * $打印信息日志(回调返回值)
40
+ */
41
+ function 调用回调函数(回调函数名称: 字符串, 数据?: 任意类型): 任意类型;
42
+ /**
43
+ * 创建新线程
44
+ * @param 线程js文件路径
45
+ * @returns 线程对象
46
+ * @example
47
+ * const 新线程 = $线程.创建新线程("xxx_thread.js")
48
+ * 新线程.添加回调函数("callback", (数据) => {
49
+ * $打印信息日志(数据)
50
+ * return "1111"
51
+ * })
52
+ */
53
+ function 创建新线程(线程js文件路径: 字符串): {
54
+ /**
55
+ * 线程名称
56
+ */
57
+ name: 字符串;
58
+ /**
59
+ * 添加回调函数
60
+ * @param 回调函数名称
61
+ * @param 回调函数
62
+ * @returns 是否添加成功
63
+ */
64
+ 添加回调函数: (
65
+ 回调函数名称: 字符串,
66
+ 回调函数: (数据?: 任意类型) => 任意类型
67
+ ) => 布尔值;
68
+ } | null;
69
+ /**
70
+ * 取消线程
71
+ * @param 线程名称
72
+ * @returns 是否取消成功
73
+ * @example
74
+ * const 新线程 = $线程.创建新线程("xxx_thread.js")
75
+ * 新线程.添加回调函数("回调函数名称", (数据) => {
76
+ * $打印信息日志(数据)
77
+ * return "1111"
78
+ * })
79
+ * $线程.取消线程(新线程.name)
80
+ */
81
+ function 取消线程(线程名称: 字符串): 布尔值;
82
+ /**
83
+ * 检查线程是否已取消
84
+ * @param 线程名称
85
+ * @returns 是否已取消
86
+ * @example
87
+ * const 新线程 = $线程.创建新线程("xxx_thread.js")
88
+ * 新线程.添加回调函数("回调函数名称", (数据) => {
89
+ * $打印信息日志(数据)
90
+ * return "1111"
91
+ * })
92
+ * $线程.是否已被取消(新线程.name)
93
+ */
94
+ function 是否已被取消(线程名称: 字符串): 布尔值;
95
+ /**
96
+ * 停止所有
97
+ * @returns 是否停止成功
98
+ * @example
99
+ * $线程.停止所有()
100
+ */
101
+ function 停止所有(): 布尔值;
102
+ }