UNPKG

@robotlegsjs/core

Version:

An architecture-based IoC framework for JavaScript/TypeScript

18 lines (17 loc) 636 B
import { IContext } from "./IContext"; /** * An extension integrates a library into a Context */ export interface IExtension { /** * This method will be called immediately when the extension/bundle is installed. * * <p>Note: the context may not be fully initialized yet. A bundle should do * little more than install additional bundles/extensions. An extension * can add lifecycle handlers to the context instance to perform synchronized * initialization.</p> * * @param context The context that this extension/bundle is being installed into. */ extend(context: IContext): void; }