-
Notifications
You must be signed in to change notification settings - Fork 62
docs(operators): add documentation for takeWhile #233
Conversation
Codecov Report
@@ Coverage Diff @@
## master #233 +/- ##
=======================================
Coverage 77.14% 77.14%
=======================================
Files 15 15
Lines 175 175
Branches 7 7
=======================================
Hits 135 135
Misses 40 40 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small "changes". Rest LGTM
name: 'takeWhile', | ||
operatorType: 'filtering', | ||
signature: | ||
'public takeWhile(predicate: function(value: T, index: number): boolean): Observable<T>', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@btroncone suggested to remove the generic from the signature
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jwo719 @btroncone - Generic on the return type ? Just so I am on the page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if i understand @btroncone at #228 correctly, yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ashwin-sureshkumar @jwo719 Yes, let's leave out in signatures per #196 (comment)
{ | ||
type: 'Tip', | ||
text: ` | ||
Takes values from the source only while they pass the condition given. When the first value does not satisfy, it completes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the tip is pretty redundant to the description above.
fe2a028
to
e981dda
Compare
takeWhile(ev => ev.clientX > 100) | ||
); | ||
result.subscribe(x => console.log(x)); | ||
`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here sample output?
e981dda
to
cf25a58
Compare
@jwo719 @sumitarora - Done, please re-review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
yay thanks @sumitarora for merging! |
Close #103