This is the set of callbags that will most likely be used in the next version of Cycle.js. They are written in TypeScript and export ES modules to allow for tree shaking. Also, the implementation is specifically tailored to the Cycle.js use case, so all of them are push-only. Using them with sink or operators that try to pull the sources here will most likely lead to bugs und weird behavior.
This project uses pnpm
, other package managers might work, but only pnpm has a lockfile that pins dependencies. To build run:
pnpm install
pnpm run build
Currently, the following set of operators is implemented, others might follow. Note that this repo is not designed to become the "official" home of callbags, so after a basic set is implemented it is very unlikely that further operators will be added. This is no problem in practise as all of the callbags here adhere to the spec, so you can easily mix and match them with any callbag operator out there.
fromArray
fromPromise
from
of
create
never
empty
throwError
merge
combine
combineWith
makeSubject
makeAsyncSubject