Skip to content

Commit 38b2f95

Browse files
Szpadelbrandonroberts
authored andcommitted
fix(Store): Fix typing for feature to accept InjectionToken (#375)
1 parent 669b2f4 commit 38b2f95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/store/src/store_module.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,17 +144,17 @@ export class StoreModule {
144144

145145
static forFeature<T, V extends Action = Action>(
146146
featureName: string,
147-
reducers: ActionReducerMap<T, V>,
147+
reducers: ActionReducerMap<T, V> | InjectionToken<ActionReducerMap<T, V>>,
148148
config?: StoreConfig<T, V>
149149
): ModuleWithProviders;
150150
static forFeature<T, V extends Action = Action>(
151151
featureName: string,
152-
reducer: ActionReducer<T, V>,
152+
reducer: ActionReducer<T, V>| InjectionToken<ActionReducer<T, V>>,
153153
config?: StoreConfig<T, V>
154154
): ModuleWithProviders;
155155
static forFeature(
156156
featureName: string,
157-
reducers: ActionReducerMap<any, any> | ActionReducer<any, any>,
157+
reducers: ActionReducerMap<any, any> | InjectionToken<ActionReducerMap<any, any>> | ActionReducer<any, any> | InjectionToken<ActionReducer<any, any>>,
158158
config: StoreConfig<any, any> = {}
159159
): ModuleWithProviders {
160160
return {

0 commit comments

Comments
 (0)