Function
attachInjectFlag
(decorator: any, flag: InternalInjectFlags | DecoratorFlags)
Source from the content-addressed store, hash-verified
| 366 | * @param flag InjectFlag that should be applied. |
| 367 | */ |
| 368 | export function attachInjectFlag(decorator: any, flag: InternalInjectFlags | DecoratorFlags): any { |
| 369 | decorator[DI_DECORATOR_FLAG] = flag; |
| 370 | decorator.prototype[DI_DECORATOR_FLAG] = flag; |
| 371 | return decorator; |
| 372 | } |
| 373 | |
| 374 | /** |
| 375 | * Reads monkey-patched property that contains InjectFlag attached to a decorator. |
Tested by
no test coverage detected