typescript-fsm icon indicating copy to clipboard operation
typescript-fsm copied to clipboard

TS-FSM is a strongly typed finite state machine for TypeScript that is using async operations. Library uses generics to take the user states and events. Zero dependencies!

Results 4 typescript-fsm issues
Sort by recently updated
recently updated
newest added

The transition callbacks should receive and instance of the fsm event handler and the state from/to: ```js function onOpen(eh: EventHandler, from: State, to: State): Promise { console.log("onOpen..."); return eh.dispatch(Events.openComplete); }...

One of the main reasons to use a FSM is to protect the internal state of the model (the context). Normally the context is defined inside the FSM and is...

Would be really nice to have conditional transitions. Normally in a FSM you can define more than one transition for the same state/event and depending on the condition one transition...

Sometimes in a FSM is needed to just do something not on the transition but when you enter or exit one state. Would be nice to add this functionality. Good...