blob: 66062c527d3890bc15977aba1b1dddaa2b85f096 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
export abstract class Command {
abstract execute(): void;
undo(): void {
throw new Error("Undo not implemented for this command");
}
redo(): void {
this.execute();
}
}
|