ms-types 0.9.31 → 0.9.32
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/package.json +1 -1
- package/types/lua/README.md +1 -1
- package/types/lua/global.lua +16 -0
package/package.json
CHANGED
package/types/lua/README.md
CHANGED
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
}
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
不要把本目录复制进脚本项目根目录。每个模块文件用 `---@meta <require名>` 和 `package.loaded['<require名>']` 对齐运行时 `require`,例如 `require("cv")`、`require("dotocr")`、`require("yolocls")`。`Sleep`、`HidKey` 等裸全局会随 library 自动加载。
|
|
13
|
+
不要把本目录复制进脚本项目根目录。每个模块文件用 `---@meta <require名>` 和 `package.loaded['<require名>']` 对齐运行时 `require`,例如 `require("cv")`、`require("dotocr")`、`require("yolocls")`。`Sleep`、`HidKey`、`logd` / `logi` / `logw` / `loge` 等裸全局会随 library 自动加载。
|
package/types/lua/global.lua
CHANGED
|
@@ -120,3 +120,19 @@ end
|
|
|
120
120
|
function GetCpuThrottleDelay()
|
|
121
121
|
return { minMs = 3, maxMs = 30 }
|
|
122
122
|
end
|
|
123
|
+
|
|
124
|
+
--- 打印调试日志,等同 `logger.debug(...)`;可变参按空格拼接
|
|
125
|
+
---@param ... any
|
|
126
|
+
function logd(...) end
|
|
127
|
+
|
|
128
|
+
--- 打印信息日志,等同 `logger.info(...)`;可变参按空格拼接
|
|
129
|
+
---@param ... any
|
|
130
|
+
function logi(...) end
|
|
131
|
+
|
|
132
|
+
--- 打印警告日志,等同 `logger.warn(...)`;可变参按空格拼接
|
|
133
|
+
---@param ... any
|
|
134
|
+
function logw(...) end
|
|
135
|
+
|
|
136
|
+
--- 打印错误日志,等同 `logger.error(...)`;可变参按空格拼接
|
|
137
|
+
---@param ... any
|
|
138
|
+
function loge(...) end
|