mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-20 05:19:27 +08:00
20 lines
259 B
TypeScript
20 lines
259 B
TypeScript
export interface Undoable<T> {
|
|
stack: T[];
|
|
redoStack: T[];
|
|
|
|
/**
|
|
* 撤销
|
|
*/
|
|
undo(): T | undefined;
|
|
|
|
/**
|
|
* 重做
|
|
*/
|
|
redo(): T | undefined;
|
|
}
|
|
|
|
export interface ResponseBase {
|
|
code: number;
|
|
message: string;
|
|
}
|