()
| 29 | } |
| 30 | |
| 31 | override async willRevert(): Promise<void> { |
| 32 | if (this.engine.history('clear').length > 0) { |
| 33 | return; |
| 34 | } |
| 35 | |
| 36 | throw new Error('No items left on the clear history to revert it.'); |
| 37 | } |
| 38 | |
| 39 | override async revert(): Promise<void> { |
| 40 | const last = this.engine.history('clear').pop(); |