@travetto/di
Advanced tools
Comparing version 2.0.0-rc.5 to 2.0.0-rc.6
{ | ||
"name": "@travetto/di", | ||
"displayName": "Dependency Injection", | ||
"version": "2.0.0-rc.5", | ||
"version": "2.0.0-rc.6", | ||
"description": "Dependency registration/management and injection support.", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -14,3 +14,3 @@ <!-- This file was generated by @travetto/doc and should not be modified directly --> | ||
## Declaration | ||
The [@Injectable](https://github.com/travetto/travetto/tree/main/module/di/src/decorator.ts#L30) and [@InjectableFactory](https://github.com/travetto/travetto/tree/main/module/di/src/decorator.ts#L72) decorators provide the registration of dependencies. Dependency declaration revolves around exposing `class`es and subtypes thereof to provide necessary functionality. Additionally, the framework will utilize dependencies to satisfy contracts with various implementations (e.g. [MongoModelService](https://github.com/travetto/travetto/tree/main/module/model-mongo/src/service.ts#L51) provides itself as an injectable candidate for [ModelCrudSupport](https://github.com/travetto/travetto/tree/main/module/model/src/service/crud.ts). | ||
The [@Injectable](https://github.com/travetto/travetto/tree/main/module/di/src/decorator.ts#L30) and [@InjectableFactory](https://github.com/travetto/travetto/tree/main/module/di/src/decorator.ts#L72) decorators provide the registration of dependencies. Dependency declaration revolves around exposing `class`es and subtypes thereof to provide necessary functionality. Additionally, the framework will utilize dependencies to satisfy contracts with various implementations (e.g. [MongoModelService](https://github.com/travetto/travetto/tree/main/module/model-mongo/src/service.ts#L52) provides itself as an injectable candidate for [ModelCrudSupport](https://github.com/travetto/travetto/tree/main/module/model/src/service/crud.ts). | ||
@@ -17,0 +17,0 @@ **Code: Example Injectable** |