Skip to main content

@jewel998/state-machine - v0.0.5 / BaseCommand

Class: BaseCommand<TResult>

Abstract base command class

Type parameters​

NameType
TResultvoid

Hierarchy​

Implements​

Table of contents​

Constructors​

Methods​

Constructors​

constructor​

• new BaseCommand<TResult>(): BaseCommand<TResult>

Type parameters​

NameType
TResultvoid

Returns​

BaseCommand<TResult>

Methods​

execute​

▸ execute(): TResult

Returns​

TResult

Implementation of​

ICommand.execute

Defined in​

src/patterns/Command.ts:79


undo​

▸ undo(): void

Returns​

void

Implementation of​

ICommand.undo

Defined in​

src/patterns/Command.ts:81


canUndo​

▸ canUndo(): boolean

Returns​

boolean

Implementation of​

ICommand.canUndo

Defined in​

src/patterns/Command.ts:83