HumanBreak/src/core/interface.ts
2024-04-22 23:08:46 +08:00

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;
}