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 all, I started using neverthrow and enjoying it big time. Unfortunately all the attempts to have clean code when handling errors are failing big time. I tried with safeTry...

Hi, I'm new to neverthrow (and functional programming) and I can't understand how to reuse a former value in a pipeline ```ts function run() { return fromPromise( getData(), () =>...

Using the following test ``` it('Can compare objects', () => { expect(err({ important: 42, useless: 7 })).toMatchObject(err({ important: 42 })); expect(err({ important: 42, useless: 7 })).not.toMatchObject(err({ important: 43 })); });...

Hi @supermacro , First of all, I would like to thank you for creating such a wonderful library. I have been using neverthrow in a production environment for about a...

In #603, @pierback mentioned that only the first `yield` is considered in the `safeTry` type inference due to a TypeScript limitation (see https://github.com/microsoft/TypeScript/issues/57625). This is a significant drawback of using...