-
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
finally is not passing observable through properly #1672
Comments
Think I found cause. |
- pass type of source observable closes ReactiveX#1672
@johnpapa , I believe this is fixed by latest changes in master branch. If you're ok please check with master, or it'll be published in next release. Thanks for catching this. |
@johnpapa next release will be Monday unless I get a deluge of requests prior to ng-conf. |
trying it now. just noticed i have this line ... which is not what you changed. i am on beta 6 (as it matches angular 2 beta 17)
|
Yes, that's prior to master including changes. Next package will be published in next week as @Blesh mentioned, or for immediate trying you may need to pull down master branch. |
Same error :( Reloaded the project in VS Code just in case. Re-ran |
worst case you could manually set the type |
Right. I'm casting now. But I think this issue should be reopened as it is not fixed from.what I tried. See above |
I just confirmed locally with master and it's working as expected. @johnpapa , would you be able to isolate by create small repo using bare Rx master only, without involving ng2? |
I wonder if there is a nested rxjs folder that's getting picked up over a custom build. I'm hanging out on the ReactiveX, OmniSharp and ASP.NET Core slacks if you want to chat a little more real time. |
i can try to do a smaller repo later, but for now here is the repo where i cast it. https://github.com/johnpapa/event-view/blob/master/src/client/app/shared/speaker-services/speaker.service.ts#L39-L46 |
Looks like catch might have an indirect problem as well, I'll see what I can do. |
Just checked in changes for |
thanks for the help. it is not working in the repo i pointed at (event-view). I made those two changes in catch and finally files. But I am on beta 6, so maybe there are other things behind. i can look more later. need to focus on some other things first. thanks tho |
I am getting this problem as well even with the latest. I was running Beta 6 and now running Beta 9. I'm using Visual Studio Code. this.userService.doSomething() //returns Observable<any>
.finally(
() => this.status = ''
) // VS Code shows this returns Observable<{}>
.subscribe(
result => {
this.x = result.x; //complains here because result is of type {}
},
error => this.errorMessage = error
) |
@bzuillsmith I'll try with master, meanwhile would you mind to share complete snippet to able to reproduce issue? it might be possible with specific cases only, would like to confirm it as well. |
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:
rxjs 5 beta 6
Code to reproduce:
See code example here ...
https://github.com/johnpapa/event-view/commit/da21a922faf74aa3f2b6fbf1af5d1d666419b24e#diff-a115014ed5c151b197295d50f1ce2a54R24
Expected behavior:
TypeScript's
tsc
should thinkgetSessions
should returnObservable<Session[]>
Actual behavior:
TypeScript's
tsc
thinksgetSessions
is returningObservable<{}>
Additional information:
finally
TypeScript is happy<Observable<Session[]>>
tsc is happyError message:
cc // @david-driscoll @Blesh @robwormald @wardbell
The text was updated successfully, but these errors were encountered: