diff --git a/classes/classes_TSinjex.TSinjex.html b/classes/classes_TSinjex.TSinjex.html index 69003dd..b8f6c76 100644 --- a/classes/classes_TSinjex.TSinjex.html +++ b/classes/classes_TSinjex.TSinjex.html @@ -1,4 +1,4 @@ -
Error class for dependency resolution errors in ITSinjex.
+Error class for dependency resolution errors in ITSinjex.
Creates a new instance of DependencyResolutionError
The identifier of the dependency
-Optional
constructorOpt: FunctionGeneral error class for ITSinjex interface.
-General error class for ITSinjex interface.
+Creates a new instance of TSinjexError
The error message
-Optional
constructorOpt: Functionimport { Identifier } from 'src/types/Identifier';
-import type { Inject } from '../decorators/Inject';
+
import type { Inject } from '../decorators/Inject'; import type { Register } from '../decorators/Register'; import type { RegisterInstance } from '../decorators/RegisterInstance'; import type { register } from '../functions/register'; @@ -327,6 +326,7 @@ import { ImplementsStatic } from '../helper/ImplementsStatic'; import { DependencyResolutionError } from '../interfaces/Exceptions'; import { IDependency } from '../interfaces/IDependency'; import { ITSinjex, ITSinjex_ } from '../interfaces/ITSinjex'; +import { Identifier } from '../types/Identifier'; /** * # TSinjex @@ -451,7 +451,7 @@ export class TSinjex implements ITSinjex {Function Inject
TSinjex
The main class for the Dependency Injection Container TSinjex.
+- Preparing search index...
- The search index is not available
ts-injex - v0.0.13Class TSinjex
TSinjex
The main class for the Dependency Injection Container TSinjex.
Decorators
See
Implements
Index
Constructors
Implements
Index
Constructors
Properties
Methods
Constructors
Private
constructorPrivate constructor to prevent direct instantiation.
-Returns TSinjex
Properties
Private
Readonly
_dependenciesThe dependencies map.
-Private
Static
_instanceThe singleton instance of the TSinjex class.
-Methods
register
Register a dependency.
+Returns TSinjex
Properties
Private
Readonly
_dependenciesThe dependencies map.
+Private
Static
_instanceThe singleton instance of the TSinjex class.
+Methods
register
Register a dependency.
Type Parameters
Parameters
The identifier of the dependency.
The dependency to register.
If true, the dependency is deprecated => a warning is logged when the dependency is resolved.
-Returns void
resolve
Resolve a dependency
+Returns void
resolve
Resolve a dependency
Type Parameters
Parameters
The identifier of the dependency
If true, throws an error if the dependency is not found
Returns undefined | T
The resolved dependency or undefined if the dependency is not found
Throws
A DependencyResolutionError if the dependency is not found and necessary.
-Static
getGet the singleton TSInjex instance.
+Static
getGet the singleton TSInjex instance.
Returns ITSinjex
The singleton instance.
-Static
registerStatic implementation of ITSinjex.register.
+Static
registerStatic implementation of ITSinjex.register.
Type Parameters
Parameters
Returns void
See
ITSinjex.register
-Inherit Doc
Static
resolveStatic implementation of ITSinjex.resolve.
+Inherit Doc
Static
resolveStatic implementation of ITSinjex.resolve.
Type Parameters
Parameters
Returns undefined | T
See
ITSinjex.resolve
-Inherit Doc
Settings
On This Page
Constructors
Properties
Methods
Inherit Doc
Settings
On This Page
Constructors
Properties
Methods