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

Function UseModuleGuard

packages/@stdlib/nestjs/src/index.ts:178–186  ·  view source on GitHub ↗
(guard: NestGuard)

Source from the content-addressed store, hash-verified

176const _moduleGuards: { guard: NestGuard; controller: NestController }[] = [];
177
178export function UseModuleGuard(guard: NestGuard) {
179 return function (module: any) {
180 const moduleControllers = _getDescendantControllers(module);
181
182 for (const controller of moduleControllers) {
183 _moduleGuards.push({ guard, controller });
184 }
185 };
186}
187
188// Application creation
189

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected