return id node map when snapshot

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent ac5293f162
commit cfc8798b53
4 changed files with 37 additions and 10 deletions

View File

@@ -57,3 +57,11 @@ export type serializedNodeWithId = serializedNode & { id: number };
export type tagMap = {
[key: string]: string;
};
export interface INode extends Node {
__sn: serializedNodeWithId;
}
export type idNodeMap = {
[key: number]: INode;
};