Register a dependency.
+The identifier of the dependency.
+The dependency to register.
+If true, the dependency is deprecated => a warning +is logged when the dependency is resolved.
+Resolve a dependency
+The identifier of the dependency
+If true, throws an error if the dependency is not found
+The resolved dependency or undefined if the dependency is not found
+Static
getStatic
registerStatic
resolveError class for dependency resolution errors in ITSinjex.
+Creates a new instance of DependencyResolutionError
+The identifier of the dependency
+General error class for ITSinjex interface.
+Creates a new instance of TSinjexError
+The error message
++ Press n or j to go to the next uncovered block, b, p or k for the previous block. +
+ +File | ++ | Statements | ++ | Branches | ++ | Functions | ++ | Lines | ++ |
---|---|---|---|---|---|---|---|---|---|
src | +
+
+ |
+ 85.71% | +18/21 | +81.81% | +9/11 | +100% | +6/6 | +84.21% | +16/19 | +
src/__tests__ | +
+
+ |
+ 100% | +20/20 | +100% | +0/0 | +100% | +7/7 | +100% | +19/19 | +
src/helper | +
+
+ |
+ 100% | +2/2 | +100% | +0/0 | +100% | +2/2 | +100% | +2/2 | +
src/interfaces | +
+
+ |
+ 100% | +6/6 | +100% | +0/0 | +100% | +2/2 | +100% | +6/6 | +
TSInjex: Dependency Injection Container
+