@half0wl/container
Classes
| Class | Description |
|---|---|
| BaseService | Abstract base class that all container-managed services extend. |
| Container | A dependency injection container that lazily creates and caches singleton service instances. |
Interfaces
| Interface | Description |
|---|---|
| ContainerConfig | Configuration object for Container.create. |
| IContainer | Minimal interface representing a DI container. |
| ServiceOptions | Options for the Service decorator. |
Type Aliases
| Type Alias | Description |
|---|---|
| Constructor | A class constructor type. |
| ServiceDependencies | The full set of dependencies passed to a service constructor. |
| TraceFn | A pluggable tracing function signature. |
Functions
| Function | Description |
|---|---|
| getPropertyDescriptorFromChain | Walk the prototype chain from proto up to (but not including) stopAt, looking for a property descriptor with the given key. |
| Inject | Property decorator for declarative inter-service dependency injection. |
| Service | Class decorator that marks a class as container-managed. |
| wrapWithTracing | Wrap all methods on an instance with a tracing function. |