(token: ProviderToken<T> | HostAttributeToken, options?: InjectOptions)
| 291 | * @publicApi |
| 292 | */ |
| 293 | export function inject<T>(token: ProviderToken<T> | HostAttributeToken, options?: InjectOptions) { |
| 294 | // The `as any` here _shouldn't_ be necessary, but without it JSCompiler |
| 295 | // throws a disambiguation error due to the multiple signatures. |
| 296 | return ɵɵinject(token as any, convertToBitFlags(options)); |
| 297 | } |
| 298 | |
| 299 | // Converts object-based DI flags (`InjectOptions`) to bit flags (`InjectFlags`). |
| 300 | export function convertToBitFlags( |
no test coverage detected
searching dependent graphs…