Our great sponsors
-
result
A TypeScript result type taking cues from Rust's Result and Haskell's Either types (by badrap)
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I'm using https://github.com/badrap/result for this purpose right now. I'll have to take a closer look at the API to see how your library differs, but I skimmed through the README and it looked promising. Good stuff :)
This looks fantastic! I’ve been using the types from ts-results in a project for work and it’s been so nice, but I’ve been getting frustrated by the outdated documentation and lack of responses to PRs that have been opened. I was considering writing one of these libraries myself, but this looks like a perfect replacement!
You might also be interested in neverthrow https://github.com/supermacro/neverthrow
Related posts
- Error Handling Patterns
- TypeScript: why you shouldn't throw errors to control the program flow
- ts-belt - Fast, modern, and practical utility library for FP in TypeScript / Flow / JavaScript. (Faster than ramda, rambda, remeda and lodash/fp.)
- Question about error handling in Typescript
- How to use advanced Typescript to define a `pipe` function