Class CommandHistory
Constructors
(constructor)(size)
Constructs a new instance of the CommandHistory
class
Declaration
constructor(size?: number);
Parameters
Type |
Name |
Description |
number |
size |
|
Methods
addCommand(command)
Declaration
addCommand(command: ICommand): void;
Parameters
Returns
clearHistory()
Declaration
Returns
getCommandsCount()
Declaration
getCommandsCount(): number;
Returns
getLastCommand(index)
Declaration
getLastCommand(index?: number): ICommand;
Parameters
Type |
Name |
Description |
number |
index |
|
Returns