allow skip child when serialize node and rebuild node

This commit is contained in:
Yanzhen Yu
2018-10-22 23:03:10 +08:00
parent e5dba6a986
commit 2a50fff366
3 changed files with 11 additions and 3 deletions

2
index.d.ts vendored
View File

@@ -10,10 +10,12 @@ export function serializeNodeWithId(
n: Node,
doc: Document,
map: idNodeMap,
skipChild?: boolean,
): serializedNodeWithId | null;
export function resetId(): void;
export function buildNodeWithSN(
n: serializedNodeWithId,
doc: Document,
map: idNodeMap,
skipChild?: boolean,
): INode | null;