MCPcopy Create free account
hub / github.com/DeepNotesApp/DeepNotes / _getDescendantControllers

Function _getDescendantControllers

packages/@stdlib/nestjs/src/index.ts:126–138  ·  view source on GitHub ↗
(module: any)

Source from the content-addressed store, hash-verified

124}
125
126function _getDescendantControllers(module: any) {
127 const descendantModules = _getDescendantModules(module);
128
129 const descendantControllers = getModuleInfo(module).controllers ?? [];
130
131 for (const descendantModule of descendantModules) {
132 const moduleInfo = getModuleInfo(descendantModule);
133
134 descendantControllers.push(...(moduleInfo.controllers ?? []));
135 }
136
137 return descendantControllers;
138}
139
140export function getModuleInfo(module: any) {
141 let moduleInfo = _moduleInfos.get(module);

Callers 1

UseModuleGuardFunction · 0.85

Calls 2

_getDescendantModulesFunction · 0.85
getModuleInfoFunction · 0.85

Tested by

no test coverage detected