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