8000 GitHub - wolfgangGoedel/bs-rx: bucklescript bindings for rxjs
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

wolfgangGoedel/bs-rx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bs-rx

BuckleScript bindings for RxJS

bs-rx is a work in progress with the goal to provide bindings to the RxJS reactive programming library. It tries to stay close to the original TypeScript API of RxJS, but with some changes to be closer to Belt (t comes first - pipe with |.)

In its current state it's more a RFC to find the right API. Feel free to post issues !

Example

Rx.Observable.(
  Belt.Array.range(1, 100)
  |. fromArray
  |. filter(x => x mod 3 == 0)
  |. sub
5A1F
scribe(~next=Js.log)
);

Todo

Many things.

  • Only a few operators are bound yet - and RxJS has a lot of them
  • Document all these operators
  • subscribe expects next, error, complete callbacks - using a variant type would be more elegant (and would force to handle stream errors and avoid runtime exceptions)
  • ultimately, there should be an RxBS library with interop with RxJS but implemented in Reason/OCaml and usable with native projects

About

bucklescript bindings for rxjs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0