Skip to content

@half0wl/container ​

Classes ​

ClassDescription
BaseServiceAbstract base class that all container-managed services extend.
ContainerA dependency injection container that lazily creates and caches singleton service instances.

Interfaces ​

InterfaceDescription
ContainerConfigConfiguration object for Container.create.
IContainerMinimal interface representing a DI container.
ServiceOptionsOptions for the Service decorator.

Type Aliases ​

Type AliasDescription
ConstructorA class constructor type.
ServiceDependenciesThe full set of dependencies passed to a service constructor.
TraceFnA pluggable tracing function signature.

Functions ​

FunctionDescription
getPropertyDescriptorFromChainWalk the prototype chain from proto up to (but not including) stopAt, looking for a property descriptor with the given key.
InjectProperty decorator for declarative inter-service dependency injection.
ServiceClass decorator that marks a class as container-managed.
wrapWithTracingWrap all methods on an instance with a tracing function.