Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gcanti/fp-ts-rxjs
- Owner: gcanti
- License: mit
- Created: 2017-06-07T12:16:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-04-08T14:32:14.000Z (almost 3 years ago)
- Last Synced: 2024-10-17T10:57:28.572Z (3 months ago)
- Topics: fp-ts, rxjs
- Language: TypeScript
- Homepage: https://gcanti.github.io/fp-ts-rxjs/
- Size: 367 KB
- Stars: 188
- Watchers: 12
- Forks: 29
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-fp-ts - gcanti/fp-ts-rxjs
- awesome-luooooob - gcanti/fp-ts-rxjs - fp-ts bindings for RxJS (TypeScript)
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)