(config: FsmConfig<TCtx, TStates>)
| 228 | * ``` |
| 229 | */ |
| 230 | export function createFsm< |
| 231 | TCtx extends object = Record<string, never>, |
| 232 | const TStates extends Record<string, Record<string, unknown>> = Record< |
| 233 | string, |
| 234 | Record<string, unknown> |
| 235 | >, |
| 236 | >(config: FsmConfig<TCtx, TStates>): Fsm<TCtx, StateNamesOf<TStates>, InputNamesOf<TStates>> { |
| 237 | return new Fsm(config as FsmConfig<TCtx, Record<string, Record<string, unknown>>>); |
| 238 | } |
no outgoing calls