ms-types 0.1.27 → 0.2.0

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.27",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
package/types/global.d.ts CHANGED
@@ -62,6 +62,11 @@ declare const __package__: {
62
62
  [key: string]: any;
63
63
  };
64
64
 
65
+ /**
66
+ * 垃圾回收 手动触发垃圾回收 不要频繁调用
67
+ */
68
+ declare function gc(): void;
69
+
65
70
  /**
66
71
  * 设置异步模式 设置为异步模式后,方法定义的返回值有 `Promise` 的 `API` 方法都会返回 Promise 异步执行
67
72
  * 必须写在 main 方法第一行
package/types/node.d.ts CHANGED
@@ -144,6 +144,10 @@ declare interface NodeInfo {
144
144
  * 节点选择器 包含节点选择、节点操作等功能
145
145
  */
146
146
  declare class NodeSelector {
147
+ /**
148
+ * 释放内存
149
+ */
150
+ releaseNode(): void;
147
151
  /**
148
152
  * 获取节点 xml 字符串
149
153
  * @param timeout 超时时间,单位毫秒 默认为 5000 毫秒
@@ -59,6 +59,11 @@ declare const $脚本配置: {
59
59
  [key: 字符串]: 任意类型;
60
60
  };
61
61
 
62
+ /**
63
+ * 垃圾回收 手动触发垃圾回收 不要频繁调用
64
+ */
65
+ declare const $垃圾回收: () => 无返回值;
66
+
62
67
  /**
63
68
  * 设置异步模式 设置为异步模式后,方法定义的返回值有 `Promise` 的 `API` 方法都会返回 Promise 异步执行
64
69
  * 必须写在 main 方法第一行
@@ -145,6 +145,10 @@ declare interface $节点信息 {
145
145
  * 节点选择器 包含节点选择、节点操作等功能
146
146
  */
147
147
  declare class $节点选择器 {
148
+ /**
149
+ * 释放节点选择器
150
+ */
151
+ 释放内存(): 无返回值;
148
152
  /**
149
153
  * 获取节点 xml 字符串
150
154
  * @param 超时时间 单位毫秒 默认为 5000 毫秒