@jewel998/state-machine - v0.0.5 / CompositeCommand
Class: CompositeCommand
Composite command for executing multiple commands as one
Hierarchy
-
BaseCommand<void>↳
CompositeCommand
Table of contents
Constructors
Methods
Constructors
constructor
• new CompositeCommand(commands): CompositeCommand
Parameters
| Name | Type |
|---|---|
commands | readonly ICommand<unknown>[] |
Returns
Overrides
Defined in
Methods
execute
▸ execute(): void
Returns
void
Overrides
Defined in
undo
▸ undo(): void
Returns
void
Overrides
Defined in
canUndo
▸ canUndo(): boolean
Returns
boolean