swissmanu / pattern-matching-with-typescript

TypeScript does not have any pattern matching functionality built in. This article shows several ways how you can replicate the core of a simple pattern matcher using a few simple structures and functions within TypeScript. Resulting code will have improved maintainability and better runtime type safety when done right.
72Updated 5 years ago

Related projects

Alternatives and complementary repositories for pattern-matching-with-typescript