Matching your way to consistent states
Finding a safer and more declarative pattern to model state in TypeScript by using discriminated unions
Tags: typescript, functional, patterns, codequality