-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(takeWhile): add inclusive
option to the operator which causes it to emit the final value
#4115
Conversation
inclusive
option to the operator which causes to emit final valueinclusive
option to the operator which causes it to emit the final value
The build is failing✨ Good work on this PR so far! ✨ Unfortunately, the Travis CI build is failing as of cc38746. Here's the output:
|
@benlesh I keep getting this error: As far as I can tell I updated all of the required files, and all test are passing when I run them on my machine. I'm probably missing something super-obvious, but I can't figure it out. Any help would be appreciated. |
@timdeschryver Yes, it will need dtslint tests. However, ATM, I'm more concerned with the changes merged in #4085 seeming to have been undone. The signature that accepts user-defined type guard appears to have been lost. |
@cartant I've made the required fixes. Can you please take a look and let me know if there are any other issues I need to address? |
6583875
to
c183085
Compare
…es to emit final value By default, the value that causes the predicate to return `false` is not emitted. This change adds an `inclusive` option which changes the behavior of the operator to include the final value which made the predicate return `false`. Typical use case: Polling an API until the response contains a certain value, and then doing something with the response.
c183085
to
f7b3d7d
Compare
@cartant Can you please take another look and let me know if there is anything else I need to fix? |
@idosela Sure. I'll look at it again, later today. Sorry for forgetting about it. |
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
In need of this too :) |
Thanks, @idosela! |
Description:
By default, the value that causes the predicate to return
false
is not emitted.This change adds an
inclusive
option which changes the behavior of the operator to include the final value which made the predicate returnfalse
.Typical use case: Polling an API until the response contains a certain value, and then doing something with the response.
Related issue: #4000