-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(effects): add smarter type inference for ofType operator. (#1183)
It is based on TS2.8 introduced conditional types. Upgrade package.json to that version. Also remove the deprecated non-pipable version of `ofType` so that we don't have to keep complicated types in two places. Fixes some tests post removal of non-pipeable version. Original implementation by @mtaran-google. BREAKING CHANGES: Removes .ofType method on Actions. Instead use the provided 'ofType' rxjs operator. BEFORE: ``` this.actions.ofType('INCREMENT') ``` AFTER: ``` import { ofType } from '@ngrx/store'; ... this.action.pipe(ofType('INCREMENT')) ```
- Loading branch information
1 parent
1448a0e
commit 8d56a6f
Showing
4 changed files
with
101 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -152,4 +152,4 @@ | |
"url": "https://opencollective.com/ngrx", | ||
"logo": "https://opencollective.com/opencollective/logo.txt" | ||
} | ||
} | ||
} |