ms-types 0.9.35 → 0.9.37

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-types",
3
- "version": "0.9.35",
3
+ "version": "0.9.37",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -117,8 +117,11 @@ function _Action.pressButton(name) return true end
117
117
  --- @return boolean 成功与否
118
118
  function _Action.sendKey(keys) return true end
119
119
 
120
+ ---@class W3CActionsJson
121
+ ---@field actions table<string, any>[] W3C action 序列
122
+
120
123
  --- 执行 W3C Actions JSON
121
- --- @param json table W3C Actions 请求体
124
+ --- @param json W3CActionsJson W3C Actions 请求体
122
125
  --- @return boolean 成功与否
123
126
  function _Action.w3cActions(json) return true end
124
127
 
@@ -20,12 +20,12 @@ function _Cloud.disconnect() end
20
20
 
21
21
  --- report
22
22
  ---@param event string
23
- ---@param data table
23
+ ---@param data table<string, any>
24
24
  ---@return boolean
25
25
  function _Cloud.report(event, data) return false end
26
26
 
27
27
  --- onEvent
28
- ---@param callback fun(event:string, data:table)|nil
28
+ ---@param callback fun(event: string, data: table<string, any>)|nil
29
29
  function _Cloud.onEvent(callback) end
30
30
 
31
31
  ---@type Cloud