GitHub / 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.
Stars: 73
Forks: 2
Open issues: 0
License: mit
Language: JavaScript
Size: 128 KB
Dependencies parsed at: Pending
Created at: almost 8 years ago
Updated at: 3 months ago
Pushed at: over 5 years ago
Last synced at: 3 days ago
Topics: article, maintainability, pattern-matching, typescript