return id node map when snapshot
This commit is contained in:
4
index.d.ts
vendored
4
index.d.ts
vendored
@@ -1,5 +1,5 @@
|
||||
import { serializedNodeWithId } from './src/types';
|
||||
import { serializedNodeWithId, idNodeMap } from './src/types';
|
||||
export * from './src/types';
|
||||
|
||||
export function snapshot(n: Document): serializedNodeWithId | null;
|
||||
export function snapshot(n: Document): [serializedNodeWithId | null, idNodeMap];
|
||||
export function rebuild(n: serializedNodeWithId): Node | null;
|
||||
|
||||
Reference in New Issue
Block a user