Skip to content

@ue-too/being / index / HostableStateMachine

Type Alias: HostableStateMachine ​

HostableStateMachine = object

Defined in: delegating-state.ts:21

The part of a state machine a DelegatingState drives.

Remarks ​

Structural on purpose: StateMachine<any, any, any, any> is not a supertype of a concrete machine because the State type is invariant in its generics, so the host is typed against just the members it calls. Every TemplateStateMachine satisfies it.

Properties ​

currentState ​

readonly currentState: string

Defined in: delegating-state.ts:22


happens() ​

happens: (...args) => EventResult<any, any>

Defined in: delegating-state.ts:23

Parameters ​

args ​

...any[]

Returns ​

EventResult<any, any>

Methods ​

reset() ​

reset(): void

Defined in: delegating-state.ts:25

Returns ​

void


start() ​

start(): void

Defined in: delegating-state.ts:24

Returns ​

void


wrapup() ​

wrapup(): void

Defined in: delegating-state.ts:26

Returns ​

void