tw5-typed 0.5.13 → 0.5.14
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,3 +1,5 @@
|
|
|
1
|
+
import { IParseTreeNode } from 'tiddlywiki';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* A utility module for working with parse trees.
|
|
3
5
|
* @description 用于处理解析树的实用程序模块。
|
|
@@ -78,4 +80,11 @@ declare module '$:/core/modules/utils/parsetree.js' {
|
|
|
78
80
|
* @description 获取解析树节点或节点数组的文本。
|
|
79
81
|
*/
|
|
80
82
|
export function getParseTreeText(tree: any): string;
|
|
83
|
+
/**
|
|
84
|
+
* Serialize parse tree.
|
|
85
|
+
* @param tree - The parse tree node or array of nodes.
|
|
86
|
+
* @returns The serialized parse tree.
|
|
87
|
+
* @description 序列化解析树。
|
|
88
|
+
*/
|
|
89
|
+
export function serializeParseTree(tree: IParseTreeNode | IParseTreeNode[]): string;
|
|
81
90
|
}
|