Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@theroyalwhee0/result

theroyalwhee026Apache-2.01.0.0TypeScript support: included

TypeScript Result error handling.

readme

@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

API Documentation

Testing.

Running npm run test will run the test suite. Running npm run test-watch will run the test suite in watch mode.

History

  • v1.0.0 - 2022-06-02
    • Bump depends for security.
  • v0.0.3 - 2021-06-11
    • Bump depends for security.
  • v0.0.2 - 2021-03-22
    • Fix generic type defaults on capture & captureFn.
  • v0.0.1 - 2021-03-21
    • Initial release.

Copyright 2021 Adam Mill

This library is released under Apache 2 license. See LICENSE for more details.