Skip to content

Commit

Permalink
Merge pull request #18 from ngrx/master
Browse files Browse the repository at this point in the history
fix(Store): Fix typing for feature to accept InjectionToken (ngrx#375)
  • Loading branch information
GulajavaMinistudio authored Sep 12, 2017
2 parents 201d698 + 38b2f95 commit 1c7b8e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/store/src/store_module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,17 +144,17 @@ export class StoreModule {

static forFeature<T, V extends Action = Action>(
featureName: string,
reducers: ActionReducerMap<T, V>,
reducers: ActionReducerMap<T, V> | InjectionToken<ActionReducerMap<T, V>>,
config?: StoreConfig<T, V>
): ModuleWithProviders;
static forFeature<T, V extends Action = Action>(
featureName: string,
reducer: ActionReducer<T, V>,
reducer: ActionReducer<T, V>| InjectionToken<ActionReducer<T, V>>,
config?: StoreConfig<T, V>
): ModuleWithProviders;
static forFeature(
featureName: string,
reducers: ActionReducerMap<any, any> | ActionReducer<any, any>,
reducers: ActionReducerMap<any, any> | InjectionToken<ActionReducerMap<any, any>> | ActionReducer<any, any> | InjectionToken<ActionReducer<any, any>>,
config: StoreConfig<any, any> = {}
): ModuleWithProviders {
return {
Expand Down

0 comments on commit 1c7b8e3

Please sign in to comment.