-
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 types for catchError #5609
Fix types for catchError #5609
Conversation
The cast was removed in ReactiveX#5572 but it is needed in Google for this to compile
@leggechr I'd kinda like to figure out why the problem is effected. What version of TS is used for the compilation? And how is the operator used? Does it differ from any of the uses in the dtslint tests? |
Yeah, I'm very curious as to why this wouldn't compile. |
So I actually think everywhere that this new lift operator is used the types are broken in Google for corresponding operators. It's been a while since I tried to fix these. I'm just trying to find the offending examples. Will update here once I've found them again. |
Okay the error that is thrown in google is with the actual catchError operator itself:
The version of typescript is 3.8.2. |
It seems that, in this codebase, there is an I'd look into this further, but it's likely that the change in this PR isn't needed, as Ben has refactored Could you try the current master, @leggechr ? |
Okay... so I've run into this a couple of times, and it might be because we allow |
FWIW, es2018 should be sufficient, as |
Related to #5708 |
Pretty sure this is closed by #5807 |
Description:
The cast was removed in #5572 but it is needed in Google for this to compile.