File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -221,16 +221,16 @@ export class StoreModule {
221
221
{
222
222
provide : _FEATURE_CONFIGS ,
223
223
multi : true ,
224
- useValue : typeof featureNameOrSlice === 'string' ? config : { } ,
224
+ useValue : featureNameOrSlice instanceof Object ? { } : config ,
225
225
} ,
226
226
{
227
227
provide : STORE_FEATURES ,
228
228
multi : true ,
229
229
useValue : {
230
230
key :
231
- typeof featureNameOrSlice === 'string'
232
- ? featureNameOrSlice
233
- : featureNameOrSlice . name ,
231
+ featureNameOrSlice instanceof Object
232
+ ? featureNameOrSlice . name
233
+ : featureNameOrSlice ,
234
234
reducerFactory :
235
235
! ( config instanceof InjectionToken ) && config . reducerFactory
236
236
? config . reducerFactory
@@ -254,9 +254,9 @@ export class StoreModule {
254
254
provide : _FEATURE_REDUCERS ,
255
255
multi : true ,
256
256
useValue :
257
- typeof featureNameOrSlice === 'string'
258
- ? reducersOrConfig
259
- : featureNameOrSlice . reducer ,
257
+ featureNameOrSlice instanceof Object
258
+ ? featureNameOrSlice . reducer
259
+ : reducersOrConfig ,
260
260
} ,
261
261
{
262
262
provide : _FEATURE_REDUCERS_TOKEN ,
You can’t perform that action at this time.
0 commit comments