( injector: Injector | null | undefined, )
| 26 | } |
| 27 | |
| 28 | export function setCurrentInjector( |
| 29 | injector: Injector | null | undefined, |
| 30 | ): Injector | undefined | null { |
| 31 | const former = _currentInjector; |
| 32 | _currentInjector = injector; |
| 33 | return former; |
| 34 | } |
| 35 | |
| 36 | export function inject<T>(token: InjectionToken<T> | Constructor<T>): T; |
| 37 | export function inject<T>( |
no outgoing calls
no test coverage detected
searching dependent graphs…