-
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
Incorrect type signatures for concatAll and mergeAll operators #2759
Comments
I ran into a similar problem myself today with similar code, trying Observable.of([[1, 2, 3], [4, 5]]).mergeAll().subscribe(x => console.log(x)); This prints (see jsbin)
The current definitions give me the compilation error So the proposed definitions are definitely better and fix other uses of function concatAll<T>(this: Observable<T[]>): Observable<T>;
function mergeAll<T>(this: Observable<T[]>, concurrent?: number): Observable<T> |
Change the type signatures for mergeAll and concatAll to be correct. The previous signatures did not work for merging/concatenating an observable of an array. Fixes ReactiveX#2759
I'm feeling this is dupe to #2690 (and related issues) which we had fixes in next major. |
Can we please fix this without waiting for a major release? This is an active issue, with two separate PRs to (partially) fix it on master in the last month: #2779, #2760 The existing typings for |
Or at least do we have any timeframe on when the next major version is expected to be released? I agree, the current typings are pretty well unusable for me. |
@aboyton Next major is already published as rxjs@6 alpha version, though it need to be published with latest changes. It won't be released as public soon enough cause we do expect to pick up some more breaking changes. |
Any reason why this was ever there in the first place. I don't see how 6 months later this wasn't ever fixed. It's confusing the heck out of me even after having found this thread. |
To @simeyla 's post, is verification assistance needed? Is there a write up on how to get started - I've never worked on github before, but I've designed asynchronous semiconductors and verified them. RxJS is cool, but github is a new concept to me. |
Closed by #3321 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
RxJS version:
5.4.2
Code to reproduce:
Expected behavior:
Code compiles without error.
Actual behavior:
Type error: "[ts] Property 'mapTo' does not exist on type 'Observable<{}>[]'.
Additional information:
Incorrect type signatures are-
They should be (I believe):
The text was updated successfully, but these errors were encountered: