vstirbu/fsm-as-promised

Typescript definition of StateMachineConfiguration

lantica opened this issue · 2 comments

In the mentioned interface, both initial and final are required.
I think these two option should be optional according to the document / implementation.

Thanks for reporting this. I'm always defining both initial and final options, so this was missed.

The initial has the default value none if no value is provided. I've opened a pull request with a fix. Is this aspect clear now?

Yes, thanks for the prompt response