Skip to content

Commit

Permalink
revert removing optional parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver committed Aug 30, 2018
1 parent a0788d5 commit 0059e01
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/effects/src/effects_feature_module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { NgModule, Inject } from '@angular/core';
import { Store } from '@ngrx/store';
import { NgModule, Inject, Optional } from '@angular/core';
import { StoreRootModule, StoreFeatureModule, Store } from '@ngrx/store';
import { EffectsRootModule } from './effects_root_module';
import { FEATURE_EFFECTS } from './tokens';
import { getSourceForInstance } from './effects_metadata';
Expand All @@ -15,7 +15,9 @@ export class EffectsFeatureModule {
constructor(
root: EffectsRootModule,
store: Store<any>,
@Inject(FEATURE_EFFECTS) effectSourceGroups: any[][]
@Inject(FEATURE_EFFECTS) effectSourceGroups: any[][],
@Optional() storeRootModule: StoreRootModule,
@Optional() storeFeatureModule: StoreFeatureModule
) {
effectSourceGroups.forEach(group => {
let effectSourceNames: string[] = [];
Expand Down

0 comments on commit 0059e01

Please sign in to comment.