(cls: Constructor<unknown>)
| 785 | * @param cls - Class with possible `@inject` decorations |
| 786 | */ |
| 787 | export function hasInjections(cls: Constructor<unknown>): boolean { |
| 788 | return ( |
| 789 | MetadataInspector.getClassMetadata(INJECT_PARAMETERS_KEY, cls) != null || |
| 790 | Reflector.getMetadata(INJECT_PARAMETERS_KEY.toString(), cls.prototype) != |
| 791 | null || |
| 792 | MetadataInspector.getAllPropertyMetadata( |
| 793 | INJECT_PROPERTIES_KEY, |
| 794 | cls.prototype, |
| 795 | ) != null |
| 796 | ); |
| 797 | } |
no test coverage detected