File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1- import { NgModule , Inject } from '@angular/core' ;
2- import { Store } from '@ngrx/store' ;
1+ import { NgModule , Inject , Optional } from '@angular/core' ;
2+ import { StoreRootModule , StoreFeatureModule , Store } from '@ngrx/store' ;
33import { EffectsRootModule } from './effects_root_module' ;
44import { FEATURE_EFFECTS } from './tokens' ;
55import { getSourceForInstance } from './effects_metadata' ;
@@ -15,7 +15,9 @@ export class EffectsFeatureModule {
1515 constructor (
1616 root : EffectsRootModule ,
1717 store : Store < any > ,
18- @Inject ( FEATURE_EFFECTS ) effectSourceGroups : any [ ] [ ]
18+ @Inject ( FEATURE_EFFECTS ) effectSourceGroups : any [ ] [ ] ,
19+ @Optional ( ) storeRootModule : StoreRootModule ,
20+ @Optional ( ) storeFeatureModule : StoreFeatureModule
1921 ) {
2022 effectSourceGroups . forEach ( group => {
2123 let effectSourceNames : string [ ] = [ ] ;
You can’t perform that action at this time.
0 commit comments