• Stars
    star
    118
  • Rank 298,800 (Top 6 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created about 6 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸ“šWrite safer TypeScript using Maybe, List, Result, and Either monads.

πŸ“š typescript-monads

Better TypeScript Control Flow

circeci codeclimate

semantic-release npm latest version

typescript-monads helps you write safer code by using abstractions over messy control flow and state.

Installation

You can use this library in the browser, node, or a bundler

Node or as a module

npm install typescript-monads

Browser

<head>
 <script src="https://unpkg.com/typescript-monads"></script>
 <!-- or use a specific version to avoid a http redirect --> 
 <script src="https://unpkg.com/[email protected]/index.min.js"></script>
</head>
var someRemoteValue;
typescriptMonads.maybe(someRemoteValue).tapSome(console.log)

Example Usage

Maybe

TODO

List

TODO

Either

TODO

Reader

TODO

Result

TODO

State

TODO

Logger

TODO