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