Typestates Would Have Saved the Roman Republic 2 years ago 3 min read State MachinesTypeScript How to prevent your republic from turning into an empire using typestates