@jewel998/state-machine - v0.0.5 / BaseCommand
Class: BaseCommand<TResult>
Abstract base command class
Type parameters
| Name | Type |
|---|---|
TResult | void |
Hierarchy
-
BaseCommand
Implements
ICommand<TResult>
Table of contents
Constructors
Methods
Constructors
constructor
• new BaseCommand<TResult>(): BaseCommand<TResult>
Type parameters
| Name | Type |
|---|---|
TResult | void |
Returns
BaseCommand<TResult>
Methods
execute
▸ execute(): TResult
Returns
TResult
Implementation of
Defined in
undo
▸ undo(): void
Returns
void
Implementation of
Defined in
canUndo
▸ canUndo(): boolean
Returns
boolean