command-pattern-queue
Version:
```typescript // command interface export interface ICommand { execute(): void unexecute(): void }
12 lines • 460 B
TypeScript
import { ICommand } from "./ICommand";
export declare class CommandQueue {
executed: ICommand[];
redo: ICommand[];
executeCommand(command: ICommand): Promise<void>;
executeCommands(commands: ICommand[]): Promise<void>;
undoCommand(numberOfCommands?: number): Promise<void>;
redoCommand(numberOfCommands?: number): Promise<void>;
getMaxUndo(): number;
getMaxRedo(): number;
}
//# sourceMappingURL=CommandQueue.d.ts.map