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
package/types/global.d.ts
CHANGED
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路径
|
|
@@ -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路径
|