1 | /**
|
2 | * @description 差异备份
|
3 | * @author fangzhicong
|
4 | */
|
5 | import Cache from '../../../../utils/data-structure/cache';
|
6 | import { Compile } from '../type';
|
7 | import Editor from '../../../index';
|
8 | export default class NodeCache extends Cache<Compile[]> {
|
9 | editor: Editor;
|
10 | constructor(editor: Editor);
|
11 | observe(): void;
|
12 | /**
|
13 | * 编译并保存数据
|
14 | */
|
15 | compile(data: MutationRecord[]): this;
|
16 | /**
|
17 | * 撤销
|
18 | */
|
19 | revoke(): boolean;
|
20 | /**
|
21 | * 恢复
|
22 | */
|
23 | restore(): boolean;
|
24 | }
|