(constructor: ConstructorOf<T>, scope: Scope)
| 72 | } |
| 73 | |
| 74 | function getInstanceFrom<T>(constructor: ConstructorOf<T>, scope: Scope): T | undefined { |
| 75 | const scopeMap = map.get(constructor) |
| 76 | |
| 77 | return scopeMap && scopeMap.get(scope) |
| 78 | } |
| 79 | |
| 80 | // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types |
| 81 | export function createScopeWithRequest(req: Request, scope: any | undefined) { |
no outgoing calls
no test coverage detected