neverthrow icon indicating copy to clipboard operation
neverthrow copied to clipboard

Type-Safe Errors for JS & TypeScript

Results 126 neverthrow issues
Sort by recently updated
recently updated
newest added

Hello, Sorry for creating an issue but there are no discussions. My question is why is passing `errorFn` mandatory? In 99% of cases i just type `e => e` because...

As discussed in https://github.com/supermacro/neverthrow/pull/567#discussion_r1754313850, the current type signature of `fromThrowable` allows users to pass a specific error value type, without providing an error mapping function that produces the provided error...

## Problem One awkward thing about `.safeTry` is that it requires you to wrap everything returned in a `Result`. ```ts const result = safeTry(function*() { return ok('foo'); }); ``` This...

- [ ] Upgrade TS to latest - [ ] Upgrade to strict mode #567 - [ ] Move to vitest #571 - [ ] Move to tsup #570 -...

Also contains work in #569, merge that first.

Updated the function in the comment to 'fromSafePromise'.

The "Scott Wlaschin — Railway oriented programming" vimeo link is dead in this wiki page https://github.com/supermacro/neverthrow/wiki/Railway-Oriented-Programming-(1hour-video). I believe this is the same video on YouTube, but I'm not 100% sure....

I believe that this repo is too much. Check it out: https://github.com/mnickw/dont-throw