Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | import type { IContainer } from '../../interfaces/container.interface.mjs'
import type { Injectors } from '../../utils/index.mjs'
/**
* Context provided to factory functions during service instantiation.
*
* Provides access to dependency injection (via inject), the container,
* and lifecycle hooks for cleanup.
*/
export interface FactoryContext {
inject: Injectors['asyncInject']
/**
* The container instance for dependency resolution.
* This may be either a Container or ScopedContainer.
*/
container: IContainer
addDestroyListener: (listener: () => void) => void
}
|