We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ed92b0 commit 70043e1Copy full SHA for 70043e1
modules/router-store/src/router_store_module.ts
@@ -124,11 +124,15 @@ export const ROUTER_CONFIG = new InjectionToken(
124
);
125
export const DEFAULT_ROUTER_FEATURENAME = 'routerReducer';
126
127
-export function _createDefaultRouterConfig(config: any): StoreRouterConfig {
128
- let _config = {};
+export function _createDefaultRouterConfig(
+ config: StoreRouterConfig | StoreRouterConfigFunction
129
+): StoreRouterConfig {
130
+ let _config: StoreRouterConfig;
131
132
if (typeof config === 'function') {
133
_config = config();
134
+ } else {
135
+ _config = config || {};
136
}
137
138
return {
0 commit comments