DEV Community

Discussion on: Type-Safe Error Handling In TypeScript

 
stealthmusic profile image
Jan Wedel

Actually you can do something similar:

blog.logrocket.com/pattern-matchin...

It’s not as pretty as real pattern matching but it fits to this use car.