HumanBreak/src/core/interface.ts
2024-05-09 23:49:53 +08:00

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