vigetlabs / microcosm

Flux with actions at center stage. Write optimistic updates, cancel requests, and track changes with ease.
http://code.viget.com/microcosm/
MIT License
487 stars 29 forks source link

[microcosm] Subscriptions and Subjects both implement a subscribable interface #515

Open nhunzaker opened 6 years ago

nhunzaker commented 6 years ago

This is a quick note to remind myself to make an interface in flow for the subscribable interface:

interface Subscribable {
  next(value: *): void
  error(value:*): void
  complete(): void
  cancel(): void
}