()
| 62 | * Whether the current stack frame is inside an injection context. |
| 63 | */ |
| 64 | export function isInInjectionContext(): boolean { |
| 65 | return getInjectImplementation() !== undefined || getCurrentInjector() != null; |
| 66 | } |
| 67 | /** |
| 68 | * Asserts that the current stack frame is within an [injection |
| 69 | * context](guide/di/dependency-injection-context) and has access to `inject`. |
no test coverage detected
searching dependent graphs…