bs-rx
bs-rx copied to clipboard
Rx.js binding for BuckleScript/Reason
bs-rx
ReasonML/Bucklescript bindings for Rx.js
Design goals
- Prefer reverse-application operator
|>over fast-pipe|.. More about this here. - Exclude support for deprecated functionality like
ResultSelectorin most higher order function. - Favor type-safety over generic functions like tuple based
zip2,zip3instead of array basedzip. - Exclude un-necessary operators which do not make sense in OCaml like
pluck. Also do not support something likenullin case ofdefaultIfEmptyoperator. - There is a good chance that schedulars might be dropped or changed in future versions of Rx.js. Avoid them. Read here.
- Provide support for Promises for most commonly required operators like
switchMap,forkJoin, etc.
Documentation
Complete documentation coming soon. For now, find examples in test/ directory.
To understand annotations/extensions in OCaml/ReasonML, read this note.