Add Dependency Injection Framework with IDependencyManager, IDependencyProvider, Type, and NamedType Classes
This commit is contained in:
7
src/di/IDependencyProvider.ts
Normal file
7
src/di/IDependencyProvider.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import Type from "./Type";
|
||||
|
||||
export default interface IDependencyProvider {
|
||||
canProvide(type: Type): boolean;
|
||||
provide(type: Type): Promise<unknown>;
|
||||
toString(): string;
|
||||
}
|
||||
Reference in New Issue
Block a user