@ue-too/being / index / ChildStateMachineConfig
インターフェイス: ChildStateMachineConfig<EventPayloadMapping, Context, ChildStates, EventOutputMapping>
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
Default child state to enter when parent state is entered
rememberHistory?
optionalrememberHistory:boolean
Whether to remember the last active child state (history state)
stateMachine
stateMachine:
StateMachine<EventPayloadMapping,Context,ChildStates,EventOutputMapping>
The child state machine instance