result
result copied to clipboard
A TypeScript result type taking cues from Rust's Result and Haskell's Either types
Bumps [terser](https://github.com/terser/terser) from 5.13.1 to 5.14.2. Changelog Sourced from terser's changelog. v5.14.2 Security fix for RegExps that should not be evaluated (regexp DDOS) Source maps improvements (#1211) Performance improvements in...
I'm trying to chain an async function, and am getting a type error. Can anyone point me in the right direction? ``` const fooRes: Result = await foo(); const barRes...
Let's say I have the following result: ```ts const result: Result = someOperation(); ``` and I want to chain like this: ```ts // Assuming ErrorA and ErrorB are structurally different....
https://github.com/vultix/ts-results
I'm liking the lib so far! What are your thoughts on `orElse` methods? Right now if I want to have errors fallback I do: ```ts const res = fn().chain( (x)...
Bumps [ejs](https://github.com/mde/ejs) from 3.1.9 to 3.1.10. Release notes Sourced from ejs's releases. v3.1.10 Version 3.1.10 Commits d3f807d Version 3.1.10 9ee26dd Mocha TDD e469741 Basic pollution protection 715e950 Merge pull request...
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.0.12 to 5.2.8. Release notes Sourced from vite's releases. [email protected] Please refer to CHANGELOG.md for details. [email protected] Please refer to CHANGELOG.md for details. [email protected] Please refer to...
Bumps the npm_and_yarn group with 3 updates in the / directory: [tmp](https://github.com/raszi/node-tmp), [@changesets/cli](https://github.com/changesets/changesets) and [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite). Removes `tmp` Updates `@changesets/cli` from 2.29.5 to 2.29.7 Release notes Sourced from @changesets/cli's releases. @changesets/cli@2.29.7...