@gvrs/fp-ts-rxjs
TypeScript icon, indicating that this package has built-in type declarations

0.7.0 • Public • Published

fp-ts bindings for rxjs

Implemented instances

  • Monad
  • Alternative
  • Filterable

Example

import { from } from 'rxjs'
import { pipe } from 'fp-ts/function'
import * as OB from 'fp-ts-rxjs/Observable'

const fa = from([1, 2, 3])
const fb = pipe(
  fa,
  OB.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 4.2.4

rxjs compatibility

rxjs version @gvrs/fp-ts-rxjs version
rxjs@7 @gvrs/fp-ts-rxjs@0.7.x

Documentation

Readme

Keywords

Package Sidebar

Install

npm i @gvrs/fp-ts-rxjs

Weekly Downloads

1

Version

0.7.0

License

MIT

Unpacked Size

263 kB

Total Files

48

Last publish

Collaborators

  • alex.gavrusev