Skip to content
您正在瀏覽 v0.18 的文件。最新版本為 v0.20。 前往最新文件

@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? ​

optional rememberHistory: 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