return id node map when snapshot

This commit is contained in:
Yanzhen Yu
2018-10-08 15:35:03 +08:00
parent 978e12b089
commit f143eee54a
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;
};