@theroyalwhee0/result
A Rust-like Result type for TypeScript. Based on Ville Hakulinen's post.
Installation
npm install @theroyalwhee0/result
or
yarn add @theroyalwhee0/result
Documentation
Testing.
Running npm run test
will run the test suite. Running npm run test-watch
will run the test suite in watch mode.
Links
- GitHub: https://github.com/theroyalwhee0/result
- NPM: https://www.npmjs.com/package/@theroyalwhee0/result
History
- v0.0.2 - 2021-03-22
- Fix generic type defaults on capture & captureFn.
- v0.0.1 - 2021-03-21
- Initial release.
Legal & License
Copyright 2021 Adam Mill
This library is released under Apache 2 license. See LICENSE for more details.