allow skip child when serialize node and rebuild node

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent 9ff0ab9451
commit b964d18ef7
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;