Skip to content

Commit

Permalink
fix(remember): return MemoryStream, not Stream
Browse files Browse the repository at this point in the history
PR #32
  • Loading branch information
AlexGalays authored and staltz committed Apr 30, 2016
1 parent 2286626 commit 4f50922
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ added listener will immediately receive that memorised event.

#### Return:

*(Stream)*
*(MemoryStream)*

- - -

Expand Down
4 changes: 2 additions & 2 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1736,9 +1736,9 @@ export class Stream<T> implements InternalListener<T> {
* the most recent event that happens on the input stream, so that a newly
* added listener will immediately receive that memorised event.
*
* @return {Stream}
* @return {MemoryStream}
*/
remember(): Stream<T> {
remember(): MemoryStream<T> {
return new MemoryStream<T>({
_start: (il: InternalListener<T>) => { this._prod._start(il); },
_stop: () => { this._prod._stop(); },
Expand Down

0 comments on commit 4f50922

Please sign in to comment.