콘텐츠로 이동
한국어

FsmTransitionMap

이 콘텐츠는 아직 번역되지 않았습니다.

FsmTransitionMap<SName, Command, Event, Data> = { readonly [state in SName]?: { readonly [K in Command["kind"]]?: PersistentFsmTransition<SName, Extract<Command, { kind: K }>, Event, Data> } & { _timeout?: FsmStateTimeout<SName, Event, Data> } }

Defined in: src/fsm/PersistentFSM.ts:178

Transition table — state × command.kind → transition entry. The mapped type narrows Command to the matching variant inside each entry so the entry’s callbacks see the right command shape. An optional _timeout field declares the per-state timeout (#65).

SName extends string

Command extends object

Event

Data