ofType does no longer automatically infer action type from general source in pipe
See original GitHub issueAfter upgrading to from 2.1.4 to 3.2.0 my epics are broken.
Before the update the ofType operator was able to infer the action type for the following operators in the pipe. It seems this no longer works.
This is the error I get after the update:

This is the matching action creator:

switchMap should be able to infer the type of the action and thus the types of the payload and meta properties.
Edit: I can also confirm that this works in 3.1.0.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
ofType does no longer automatically infer action type from general ...
After upgrading to from 2.1.4 to 3.2.0 my epics are broken. Before the update the ofType operator was able to infer the action...
Read more >NgRX effects - Type 'Observable<unknown>' is not assignable ...
Type 'Go' is not assignable to type 'ObservableInput<any>'. Fixing this gives @Effect() navigateToDashboard$ = this.actions$.pipe( ofType(teamActions.
Read more >ofType - NgRx
Type narrowing automatically works, as long as your actions object starts with a Actions<SomeUnionOfActions> instead of generic Actions .
Read more >Troubleshoot mapping data flows - Azure Data Factory
In this article. General troubleshooting guidance; Common error codes and messages; Miscellaneous troubleshooting tips; Next steps.
Read more >Pipelines - Hugging Face
The pipelines are a great and easy way to use models for inference. These pipelines are objects that abstract most of the complex...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Now repro works on CodeSandbox. Thank you @eXaminator for reporting this bug.
🎉 This issue has been resolved in version 3.2.1 🎉
The release is available on:
Your semantic-release bot 📦🚀