ms-types 0.3.8 → 0.3.9

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.3.8",
3
+ "version": "0.3.9",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
package/types/node.d.ts CHANGED
@@ -37,6 +37,10 @@ declare interface NodeBoundsInfo {
37
37
 
38
38
  declare interface NodeInfo {
39
39
  id: string;
40
+ /**
41
+ * 节点标识符
42
+ */
43
+ identifier: string;
40
44
  /**
41
45
  * 节点标签
42
46
  */
@@ -185,6 +189,18 @@ declare class NodeSelector {
185
189
  * @returns 节点选择器
186
190
  */
187
191
  titleMatch(match: string): NodeSelector;
192
+ /**
193
+ * 获取节点标识符
194
+ * @param identifier 节点标识符
195
+ * @returns 节点选择器
196
+ */
197
+ identifier(identifier: string): NodeSelector;
198
+ /**
199
+ * 获取节点标识符匹配
200
+ * @param match 匹配字符串
201
+ * @returns 节点选择器
202
+ */
203
+ identifierMatch(match: string): NodeSelector;
188
204
  /**
189
205
  * 获取节点类型
190
206
  * @param type 节点类型
@@ -38,6 +38,10 @@ declare interface $节点位置信息 {
38
38
 
39
39
  declare interface $节点信息 {
40
40
  id: 字符串;
41
+ /**
42
+ * 节点标识符
43
+ */
44
+ identifier: 字符串;
41
45
  /**
42
46
  * 节点标签
43
47
  */
@@ -186,6 +190,18 @@ declare class $节点选择器 {
186
190
  * @returns 节点选择器
187
191
  */
188
192
  titleMatch(match: 字符串): $节点选择器;
193
+ /**
194
+ * 获取节点标识符
195
+ * @param identifier 节点标识符
196
+ * @returns 节点选择器
197
+ */
198
+ identifier(identifier: 字符串): $节点选择器;
199
+ /**
200
+ * 获取节点标识符匹配
201
+ * @param match 匹配字符串
202
+ * @returns 节点选择器
203
+ */
204
+ identifierMatch(match: 字符串): $节点选择器;
189
205
  /**
190
206
  * 获取节点类型
191
207
  * @param type 节点类型