@theroyalwhee0/result
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@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.

Links

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.

Legal & License

Copyright 2021 Adam Mill

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

Readme

Keywords

none

Package Sidebar

Install

npm i @theroyalwhee0/result

Weekly Downloads

1

Version

1.0.0

License

Apache-2.0

Unpacked Size

33.9 kB

Total Files

16

Last publish

Collaborators

  • theroyalwhee0