UNPKG

521 BTypeScriptView Raw
1/**
2 * @description 差异备份
3 * @author fangzhicong
4 */
5import Cache from '../../../../utils/data-structure/cache';
6import { Compile } from '../type';
7import Editor from '../../../index';
8export 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}