From 38b2f955e980c8f717a184e860fdda2db159018a Mon Sep 17 00:00:00 2001 From: Szpadel Date: Tue, 12 Sep 2017 03:19:29 +0200 Subject: [PATCH] fix(Store): Fix typing for feature to accept InjectionToken (#375) --- modules/store/src/store_module.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/store/src/store_module.ts b/modules/store/src/store_module.ts index 0481dd2ad8..c6f3abbc95 100644 --- a/modules/store/src/store_module.ts +++ b/modules/store/src/store_module.ts @@ -144,17 +144,17 @@ export class StoreModule { static forFeature( featureName: string, - reducers: ActionReducerMap, + reducers: ActionReducerMap | InjectionToken>, config?: StoreConfig ): ModuleWithProviders; static forFeature( featureName: string, - reducer: ActionReducer, + reducer: ActionReducer| InjectionToken>, config?: StoreConfig ): ModuleWithProviders; static forFeature( featureName: string, - reducers: ActionReducerMap | ActionReducer, + reducers: ActionReducerMap | InjectionToken> | ActionReducer | InjectionToken>, config: StoreConfig = {} ): ModuleWithProviders { return {