ms-types 0.1.18 → 0.1.19

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.1.18",
3
+ "version": "0.1.19",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
package/types/global.d.ts CHANGED
@@ -59,7 +59,7 @@ declare const __package__: {
59
59
  };
60
60
 
61
61
  /**
62
- * 设置异步模式 设置为异步模式后,方法所有同步API方法都会返回 Promise 异步执行
62
+ * 设置异步模式 设置为异步模式后,方法定义的返回值有 `Promise` 的 `API` 方法都会返回 Promise 异步执行
63
63
  * 必须写在 main 方法第一行
64
64
  * @param asyncMode 是否异步模式
65
65
  * @description 设置是否开启异步模式,默认 false
package/types/node.d.ts CHANGED
@@ -156,6 +156,15 @@ declare class NodeSelector {
156
156
  * @returns 节点信息
157
157
  */
158
158
  getOneNodeInfo(timeout?: number): NodeInfo | null;
159
+ /**
160
+ * 加载节点数据
161
+ * @param timeout 超时时间,单位毫秒 默认为 5000 毫秒
162
+ */
163
+ loadNode(timeout?: number): NodeSelector;
164
+ /**
165
+ * 清除所有选择条件
166
+ */
167
+ clearSelector(): NodeSelector;
159
168
  /**
160
169
  * 获取节点xpath
161
170
  * @param path xpath路径
@@ -59,7 +59,7 @@ declare const $脚本配置: {
59
59
  };
60
60
 
61
61
  /**
62
- * 设置异步模式 设置为异步模式后,方法所有同步API方法都会返回 Promise 异步执行
62
+ * 设置异步模式 设置为异步模式后,方法定义的返回值有 `Promise` 的 `API` 方法都会返回 Promise 异步执行
63
63
  * 必须写在 main 方法第一行
64
64
  * @param 异步模式 是否异步模式
65
65
  * @description 设置是否开启异步模式,默认 false
@@ -157,6 +157,15 @@ declare class $节点选择器 {
157
157
  * @returns 节点信息
158
158
  */
159
159
  获取一个节点(超时时间?: 数字): $节点信息 | null;
160
+ /**
161
+ * 加载节点数据
162
+ * @param 超时时间,单位毫秒 默认为 5000 毫秒
163
+ */
164
+ 加载节点数据(超时时间?: 数字): $节点选择器;
165
+ /**
166
+ * 清除所有选择条件
167
+ */
168
+ 清除所有选择条件(): $节点选择器;
160
169
  /**
161
170
  * 获取节点xpath
162
171
  * @param xpath 节点xpath路径