(module: any)
| 150 | } |
| 151 | |
| 152 | function _generateRoutes(module: any) { |
| 153 | const children: Routes = []; |
| 154 | |
| 155 | const moduleInfo = getModuleInfo(module); |
| 156 | |
| 157 | for (const childModule of moduleInfo.children ?? []) { |
| 158 | const childData = getModuleInfo(childModule); |
| 159 | |
| 160 | if (childData.prefix == null) { |
| 161 | continue; |
| 162 | } |
| 163 | |
| 164 | children.push({ |
| 165 | path: childData.prefix, |
| 166 | module: childModule as any, |
| 167 | children: _generateRoutes(childModule), |
| 168 | }); |
| 169 | } |
| 170 | |
| 171 | return children; |
| 172 | } |
| 173 | |
| 174 | // Module Guards |
| 175 |
no test coverage detected