@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.
26 lines (25 loc) • 1.05 kB
TypeScript
import { ResolutionContext } from './resolutionContext';
import { DependencyMetadata } from './dependencyMetadata';
/**
* Represents options that define some aspects of the resolutions and perform some operations before and after.
*/
export declare class ResolutionOption {
/**
* Represents the dependencies that will be replaced in the resolution
*/
dependencies: {
[dependencyAlias: string]: any;
};
/**
* Represents a callback that is triggered before deliver each dependency metadata.
*/
beforeResolveEach: (resolutionContext: ResolutionContext, dependencyMetadata: DependencyMetadata) => void;
/**
* Represents a callback that is triggered after deliver each dependency metadata.
*/
afterResolveEach: (resolutionContext: ResolutionContext, dependencyMetadata: DependencyMetadata) => void;
/**
* Represents a callback that is triggered after deliver all dependency metadata.
*/
afterResolve: (resolutionContext: ResolutionContext, result: any) => void;
}