neverthrow
neverthrow copied to clipboard
Type-Safe Errors for JS & TypeScript
Current signature: ```ts class Result { orElse( callback: (error: E) => Result ): Result { ... } } ``` Suggested signature: ```ts class Result { orElse( callback: (error: E) =>...
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [rollup](https://rollupjs.org/) ([source](https://togithub.com/rollup/rollup)) | [`2.75.6` -> `4.13.2`](https://renovatebot.com/diffs/npm/rollup/2.75.6/4.13.2) |...
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/typescript-eslint) ([source](https://togithub.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin)) | [`4.28.1` -> `7.4.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2feslint-plugin/4.28.1/7.4.0) |...
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [testdouble](https://togithub.com/testdouble/testdouble.js) | [`3.16.3` -> `3.20.2`](https://renovatebot.com/diffs/npm/testdouble/3.16.3/3.20.2) | [](https://docs.renovatebot.com/merge-confidence/)...
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [typescript](https://www.typescriptlang.org/) ([source](https://togithub.com/Microsoft/TypeScript)) | [`4.7.2` -> `5.4.3`](https://renovatebot.com/diffs/npm/typescript/4.7.2/5.4.3) |...
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@babel/core](https://babel.dev/docs/en/next/babel-core) ([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-core)) | [`7.16.7` -> `7.24.3`](https://renovatebot.com/diffs/npm/@babel%2fcore/7.16.7/7.24.3) |...
closes #445 Hi @supermacro! I opened [an issue with a suggestion](#445 ) about 2.5 months ago (Jan 17) but I think you have been very busy and I thought maybe...
This library is really helping us at work to make our code safer. However, we've noticed that readability can suffer when using .andThen/.orElse chains, especially when integrating with old async...
I don't know if there have changes made since issue #254, but I am looking for the same functionality. My specific use case is that I'm looking to avoid race...
In the current safeTry function, TypeScript cannot infer the type if the yielded Err and the Err returned by the generator function are different types. ```ts interface FirstYieldError { name:...