Skip to content

Commit

Permalink
Add transform method
Browse files Browse the repository at this point in the history
  • Loading branch information
bigslycat committed Oct 19, 2018
1 parent 6d6138e commit 813883e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/honeycombs/src/Honeycomb.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ class Honeycomb<S> extends StoreObservable<S>
return bee.of(store, caseSubject, queue.case(handler, next));
}

transform(handler: S => S): bee.Bee<S, void> {
return this.case(() => handler);
}

always(payload: S): bee.Bee<S, void> {
return this.case(() => payload);
}
Expand Down

0 comments on commit 813883e

Please sign in to comment.