Rename DIContainer to TSInjex and refactor interfaces
- Renamed DIContainer class and related references to TSInjex to better indicate its purpose as a TypeScript-based dependency injection container. - Extracted IDependency interface to a separate file to improve modularity. - Split the ITSInjex interface into ITSInjexRegister and ITSInjexResolve, then extended them in a new ITSInjex interface to clarify the separation of concerns. - Updated tests and decorators to reflect the renaming and interface changes. - Adjusted helper, functions, and index export to align with the new TSInjex structure.
This commit is contained in:
14
src/interfaces/IDependency.ts
Normal file
14
src/interfaces/IDependency.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Dependency Entry Interface
|
||||
*/
|
||||
export interface IDependency {
|
||||
/**
|
||||
* The dependency itself
|
||||
*/
|
||||
dependency: unknown;
|
||||
/**
|
||||
* If true, the dependency is deprecated => a warning
|
||||
* is logged when the dependency is resolved
|
||||
*/
|
||||
deprecated?: boolean;
|
||||
}
|
Reference in New Issue
Block a user