Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/patrickmichalina/typescript-monads

๐Ÿ“šWrite safer TypeScript using Maybe, List, Result, and Either monads.
https://github.com/patrickmichalina/typescript-monads

either-monad functional-programming immutability javascript list-monad maybe-monad monads node reader-monad result-monad typescript

Last synced: 29 days ago
JSON representation

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

Awesome Lists containing this project

README

        

๐Ÿ“š 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
```bash
npm install typescript-monads
```

## Browser
```html



```

```js
var someRemoteValue;
typescriptMonads.maybe(someRemoteValue).tapSome(console.log)
```

# Example Usage

* [Maybe](#maybe)
* [List](#list)
* [Either](#either)
* [Reader](#reader)
* [Result](#result)
* [State](#state)
* [Logger](#logger)

# Maybe
TODO

## List
TODO

## Either
TODO

## Reader
TODO

## Result
TODO

## State
TODO

## Logger
TODO