UNPKG
statewave
Version:
latest (0.1.5)
0.1.5
0.1.4
0.1.3
0.1.2
0.1.0
Another Finite State Machine
github.com/ray-delossantos/statewave
ray-delossantos/statewave
statewave
/
src
/
transition.ts
10 lines
(8 loc)
•
178 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import { Transition }
from
"."
;
export function
transition
<
S
,
E
>(
event
: E, state: S
): Transition<S, E>
{
return
() => ({ __transition:
true
,
event
, state, }); }