@ue-too/being / index / ChildStateMachineConfig
介面: ChildStateMachineConfig<EventPayloadMapping, Context, ChildStates, EventOutputMapping>
定義於: hierarchical.ts:47
Configuration for a composite state's child state machine.
型別參數
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
屬性
defaultChildState
defaultChildState:
ChildStates
定義於: hierarchical.ts:63
Default child state to enter when parent state is entered
rememberHistory?
optionalrememberHistory:boolean
定義於: hierarchical.ts:65
Whether to remember the last active child state (history state)
stateMachine
stateMachine:
StateMachine<EventPayloadMapping,Context,ChildStates,EventOutputMapping>
定義於: hierarchical.ts:56
The child state machine instance