Skip to content

Commit 0059e01

Browse files
committed
revert removing optional parameters
1 parent a0788d5 commit 0059e01

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

modules/effects/src/effects_feature_module.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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';
33
import { EffectsRootModule } from './effects_root_module';
44
import { FEATURE_EFFECTS } from './tokens';
55
import { 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[] = [];

0 commit comments

Comments
 (0)