UNPKG
fsm-state-manager
Version:
latest (1.1.2)
1.1.2
1.1.1
1.1.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
A Flow FSM using a finite state machine pattern
fsm-state-manager
/
dist
/
types
/
transition-rules-type.d.ts
7 lines
(6 loc)
•
289 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
FSMConfig
from
"../interfaces/fsm-config.i"
;
import
TransitionRule
from
"./transition-rule-type"
;
type
TransitionRulesType
<
Config
extends
FSMConfig
> = { [
State
in
Config
[
'state'
]]:
Partial
<
Record
<
Config
[
'event'
],
TransitionRule
<
Config
>>>; };
export
default
TransitionRulesType
;