Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/patrickmichalina/typescript-monads
- Owner: patrickmichalina
- License: mit
- Created: 2018-08-08T01:06:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-09T08:54:32.000Z (11 months ago)
- Last Synced: 2024-10-30T23:07:22.429Z (about 1 month ago)
- Topics: either-monad, functional-programming, immutability, javascript, list-monad, maybe-monad, monads, node, reader-monad, result-monad, typescript
- Language: TypeScript
- Homepage:
- Size: 1.43 MB
- Stars: 118
- Watchers: 5
- Forks: 12
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ccamel - patrickmichalina/typescript-monads - ๐Write safer TypeScript using Maybe, List, Result, and Either monads. (TypeScript)
README
๐ typescript-monads
Better TypeScript Control Flow
**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