-
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Stream): accept partially defined listeners
Stream.addListener can now accept a listener that is partially defined. This means that it does not require all three callbacks. One or two or all of the callbacks can be given, and it will still work as expected. #67
- Loading branch information
Showing
3 changed files
with
58 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
import {Stream, MemoryStream, Listener, Producer, Operator, Observable} from './core'; | ||
export {Stream, MemoryStream, Listener, Producer, Operator, Observable}; | ||
import { | ||
Stream, | ||
MemoryStream, | ||
Listener, | ||
PartialListener, | ||
Producer, | ||
Operator, | ||
Observable, | ||
} from './core'; | ||
export { | ||
Stream, | ||
MemoryStream, | ||
Listener, | ||
PartialListener, | ||
Producer, | ||
Operator, | ||
Observable, | ||
}; | ||
export default Stream; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters