-
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
fix(partition): deprecate partition operator and create partition sta… #4685
Conversation
I am still working on the tests. |
* ```ts | ||
* import { partition } from 'rxjs'; | ||
* | ||
* const observableValues = of(1, 2, 3, 4, 5, 6); |
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.
Missing import for of
.
* | ||
* odds$.subscribe(x => console.log('odds', x)); | ||
* evens$.subscribe(x => console.log('evens', 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.
It'd be nice to have the outputs of odds$
and evens$
.
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.
Will also need tests and dtslint tests.
src/internal/observable/partition.ts
Outdated
* with values that passed the predicate, and another with values that did not | ||
* pass the predicate. | ||
* @method partition | ||
* @owner Observable |
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.
@method
and @owner
can be removed. That's legacy from our old docs system.
(I can see it's draft, but it's looking good so far) |
2669cc7
to
b2cbdac
Compare
It seems like there are few dtslint tests that are failing. |
Pull Request Test Coverage Report for Build 8349
💛 - Coveralls |
Description:
Deprecate the current
partition
operator and create a new creation function partition observable.Related issue (if exists):
#4419