Aller au contenu
Français

FsmTransitionMap

Ce contenu n’est pas encore disponible dans votre langue.

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