/** 撤销、恢复函数 */ export type UndoRedoAction = (...params: any[]) => void /** 操作集合 */ export type UndoRedoActionCollection = { [key: string]: UndoRedoAction } /** 某个操作的 撤销、恢复 函数的 key */ export type UndoRedoActionPairs = { set: string; restore: string; } /** 撤销、恢复 函数集合 */ export type UndoRedoActionPairsCollection = { [key: string]: UndoRedoActionPairs } /** 撤销、恢复 记录 */ export type UndoRedoRecord = { set: { params: any[], action: string }, restore: { params: any[], action: string } }