- inject(name): ((target: any, propertyKey: PropertyKey, parameterIndex?: number) => void)
Returns ((target: any, propertyKey: PropertyKey, parameterIndex?: number) => void)
- (target, propertyKey, parameterIndex?): void
Parameters
- target: any
- propertyKey: PropertyKey
Optional
parameterIndex: number
Returns void
Decorator to identify a property, or constructor argument, as a dependency to be injected