Does anyone happen to have an example of a state machine type pattern implemented in TypeScript?
You could give this a go? https://github.com/eonarheim/TypeState
Friend of mine is working on possibly implementing this system into our game currently.