Interfaces
This page details the core interfaces used throughout the library.
Core Component Interfaces
IContainer
Defines the contract for a dependency injection container.
Defined in: src/domain/interface/container.interface.ts
(See Core Concepts: Container Pattern)
IRegistry<T>
Defines the contract for a registry storing items of type T
, where T
must have a name: string
property.
Defined in: src/domain/interface/registry.interface.ts
(See Core Concepts: Registry Pattern)
IFactory<T>
Defines the contract for a factory creating items of type T
.
Defined in: src/domain/interface/factory.interface.ts
Name | Type | Default |
---|---|---|
create | (name: string) => T Create an item by name. | |
getRegistry | () => IRegistry<T> Get the registry associated with this factory. |
(See Core Concepts: Factory Pattern)
ILogger
Defines the contract for a logging service.
Defined in: src/domain/interface/logger/interface.ts
(See Services: Logging Service)
IError
Extends the standard Error
interface with additional structured properties.
Defined in: src/domain/interface/error.interface.ts
(See Core Concepts: Error Handling)