mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-19 20:59:37 +08:00
22 lines
319 B
TypeScript
22 lines
319 B
TypeScript
export interface Undoable<T> {
|
|
stack: T[];
|
|
redoStack: T[];
|
|
|
|
/**
|
|
* 撤销
|
|
*/
|
|
undo(): T | undefined;
|
|
|
|
/**
|
|
* 重做
|
|
*/
|
|
redo(): T | undefined;
|
|
}
|
|
|
|
export interface ResponseBase {
|
|
code: number;
|
|
message: string;
|
|
}
|
|
|
|
export type CSSObj = Partial<Record<CanParseCss, string>>;
|