Skip to content
You're viewing the docs for v0.18. The latest version is v0.20. Go to the latest docs

@ue-too/being / index / ChildStateMachineConfig

Interface: ChildStateMachineConfig<EventPayloadMapping, Context, ChildStates, EventOutputMapping> ​

Defined in: hierarchical.ts:47

Configuration for a composite state's child state machine.

Type Parameters ​

EventPayloadMapping ​

EventPayloadMapping = any

Event payload mapping

Context ​

Context extends BaseContext = BaseContext

Context type

ChildStates ​

ChildStates extends string = string

Child state names

EventOutputMapping ​

EventOutputMapping extends Partial<Record<keyof EventPayloadMapping, unknown>> = DefaultOutputMapping<EventPayloadMapping>

Event output mapping

Properties ​

defaultChildState ​

defaultChildState: ChildStates

Defined in: hierarchical.ts:63

Default child state to enter when parent state is entered


rememberHistory? ​

optional rememberHistory: boolean

Defined in: hierarchical.ts:65

Whether to remember the last active child state (history state)


stateMachine ​

stateMachine: StateMachine<EventPayloadMapping, Context, ChildStates, EventOutputMapping>

Defined in: hierarchical.ts:56

The child state machine instance