UNPKG

@robotlegsjs/core

Version:

An architecture-based IoC framework for JavaScript/TypeScript

24 lines (23 loc) 770 B
import { IEventDispatcher } from "../../events/api/IEventDispatcher"; import { IContext } from "../../framework/api/IContext"; import { IExtension } from "../../framework/api/IExtension"; /** * This extension maps an IEventDispatcher into a context's injector. */ export declare class EventDispatcherExtension implements IExtension { private _context; private _eventDispatcher; private _lifecycleRelay; /** * Creates an Event Dispatcher Extension * * @param eventDispatcher Optional IEventDispatcher instance to share */ constructor(eventDispatcher?: IEventDispatcher); /** * @inheritDoc */ extend(context: IContext): void; private _configureLifecycleEventRelay; private _destroyLifecycleEventRelay; }