Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/gcanti/fp-ts-rxjs

fp-ts bindings for RxJS
https://github.com/gcanti/fp-ts-rxjs

fp-ts rxjs

Last synced: about 9 hours ago
JSON representation

fp-ts bindings for RxJS

Awesome Lists containing this project

README

        

[fp-ts](https://github.com/gcanti/fp-ts) bindings for rxjs

# Implemented instances

- `Monad`
- `Alternative`
- `Filterable`

# Example

```ts
import { from } from 'rxjs'
import { observable } from 'fp-ts-rxjs/lib/Observable'

const fa = from([1, 2, 3])
const fb = observable.chain(fa, a => from([a, a + 1]))
// fb will emit 1, 2, 2, 3, 3, 4
```

# TypeScript compatibility

The stable version is tested against TypeScript 3.1.3

# rxjs compatibility

| rxjs version | fp-ts-rxjs version |
| ------------ | ------------------ |
| `rxjs@6` | `[email protected]` |
| `rxjs@5` | `[email protected]` |

# Documentation

- [API Reference](https://gcanti.github.io/fp-ts-rxjs)