Skip to content

Commit

Permalink
feat(compose): support any return value for compose method
Browse files Browse the repository at this point in the history
  • Loading branch information
staltz committed Jul 13, 2017
1 parent 06d7f67 commit 330aaba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1794,7 +1794,7 @@ export class Stream<T> implements InternalListener<T> {
* returns a stream as well.
* @return {Stream}
*/
compose<U>(operator: (stream: Stream<T>) => Stream<U>): Stream<U> {
compose<U>(operator: (stream: Stream<T>) => U): U {
return operator(this);
}

Expand Down

0 comments on commit 330aaba

Please sign in to comment.