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