@fabiospampinato/fsm
Version:
Finite State Machine implementation, with support for guards and enter/exit events.
16 lines (15 loc) • 416 B
TypeScript
declare type guard = string;
declare type model = any;
declare type state = string;
declare type states = state[];
declare type transition = string;
declare type transitionObj = state | {
state: state;
guard?: guard;
};
declare type stateObj = {
transitions?: any;
states?: any;
};
declare type statesObj = any;
export { guard, model, state, states, transition, transitionObj, stateObj, statesObj };