Register a dependency.
The identifier of the dependency.
The dependency to register.
Optional
deprecated: booleanIf true, the dependency is deprecated => a warning is logged when the dependency is resolved.
Register a deprecated dependency.
The identifier of the dependency.
The dependency to register.
Optional
deprecated: trueA warning is logged when the dependency is resolved.
Register a dependency.
The identifier of the dependency.
The dependency to register.
Optional
deprecated: falseNo warning is logged when the dependency is resolved.
Resolve a dependency
The identifier of the dependency
Optional
necessary: booleanIf true, throws an error if the dependency is not found
The resolved dependency or undefined if the dependency is not found
A DependencyResolutionError if the dependency is not found and necessary.
Resolve a necessary dependency.
The identifier of the dependency.
Optional
necessary: trueIf true, throws an error if the dependency is not found.
The resolved dependency.
A DependencyResolutionError if the dependency is not found.
Resolve a non necessary dependency
The identifier of the dependency
Optional
necessary: falseNot necessary, does not throw an error if the dependency is not found.
The resolved dependency or undefined if the dependency is not found
Static TSInjex Interface