ms-types 0.1.18 → 0.1.20

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.20",
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
@@ -144,6 +144,12 @@ declare interface NodeInfo {
144
144
  * 节点选择器 包含节点选择、节点操作等功能
145
145
  */
146
146
  declare class NodeSelector {
147
+ /**
148
+ * 获取节点 xml 字符串
149
+ * @param timeout 超时时间,单位毫秒 默认为 5000 毫秒
150
+ * @returns 节点 xml 字符串
151
+ */
152
+ xml(timeout?: number): string | null;
147
153
  /**
148
154
  * 获取节点信息
149
155
  * @param timeout 超时时间,单位毫秒 默认为 5000 毫秒
@@ -156,6 +162,15 @@ declare class NodeSelector {
156
162
  * @returns 节点信息
157
163
  */
158
164
  getOneNodeInfo(timeout?: number): NodeInfo | null;
165
+ /**
166
+ * 加载节点数据
167
+ * @param timeout 超时时间,单位毫秒 默认为 5000 毫秒
168
+ */
169
+ loadNode(timeout?: number): NodeSelector;
170
+ /**
171
+ * 清除所有选择条件
172
+ */
173
+ clearSelector(): NodeSelector;
159
174
  /**
160
175
  * 获取节点xpath
161
176
  * @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
@@ -145,6 +145,12 @@ declare interface $节点信息 {
145
145
  * 节点选择器 包含节点选择、节点操作等功能
146
146
  */
147
147
  declare class $节点选择器 {
148
+ /**
149
+ * 获取节点 xml 字符串
150
+ * @param 超时时间 单位毫秒 默认为 5000 毫秒
151
+ * @returns 节点 xml 字符串
152
+ */
153
+ xml(超时时间?: 数字): 字符串 | null;
148
154
  /**
149
155
  * 获取节点信息
150
156
  * @param 超时时间 单位毫秒 默认为 5000 毫秒
@@ -157,6 +163,15 @@ declare class $节点选择器 {
157
163
  * @returns 节点信息
158
164
  */
159
165
  获取一个节点(超时时间?: 数字): $节点信息 | null;
166
+ /**
167
+ * 加载节点数据
168
+ * @param 超时时间,单位毫秒 默认为 5000 毫秒
169
+ */
170
+ 加载节点数据(超时时间?: 数字): $节点选择器;
171
+ /**
172
+ * 清除所有选择条件
173
+ */
174
+ 清除所有选择条件(): $节点选择器;
160
175
  /**
161
176
  * 获取节点xpath
162
177
  * @param xpath 节点xpath路径