TypeScript 69 🔷 Result Types and Either Patterns
The previous chapter introduced the Result type as one option for typed error handling, alongside the try/catch and the custom error classes. This chapter takes the Result and its functional sibling Either further. They are the same idea with different names: a discriminated union that carries either a success value or a failure value, making…