UNPKG

@jems/di

Version:

An implementation of IoC pattern based on dependency injection that allows you to granulate and decouple your libraries or applications. Wrote using SOLID principles and a variety OOP patterns implementations.

12 lines (11 loc) 404 B
import { Kernel } from './kernel'; /** * Represents a module that perform dome additional registrations and configuration to the kernel that load it. */ export interface Module { /** * Initialize the module and perform the needed configurations in the given kernel. * @param {Kernel} kernel Represents the kernel tha is loading the module. */ initialize(kernel: Kernel): void; }