rxjs migration, return of pipe() #6415
Answered
by
raymonddavis
Gamewalker
asked this question in
Q&A
-
Hello, with rxjs 6 the following code was working fine, with rxjs7 (or probably TS 4.2) its not workign anymore. I dont really understand whats happening here and find no clue in the migration guide.
|
Beta Was this translation helpful? Give feedback.
Answered by
raymonddavis
May 21, 2021
Replies: 1 comment
-
So I am not sure what caused the change but if errorHandling is a variable then it will not be able to get the correct type information from the place it is being used.
If you make that variable into a function that takes the generics you can handle the typing. The stackblitz is here |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Gamewalker
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So I am not sure what caused the change but if errorHandling is a variable then it will not be able to get the correct type information from the place it is being used.
If you make that variable into a function that takes the generics you can handle the typing.
The stackblitz is here
https://stackblitz.com/edit/rxjs-pipe-issue