The identifier used to resolve the dependency from the DI container.
Optional
init: InitDelegate<T, U>An optional initializer function to transform the dependency before injection.
Indicates if the dependency is necessary.
true
, an error will be thrown if the dependency cannot be resolved.false
, undefined
will be returned if the dependency cannot be resolved.A decorator function to be applied on the class property.
A decorator to inject a dependency from a DI (Dependency Injection) container. The dependency is lazily evaluated when the property is accessed for the first time. This can help avoid issues like circular dependencies and not-found dependencies.