@inward/context
Version:
LoopBack's container for Inversion of Control
24 lines (23 loc) • 519 B
TypeScript
import { Binding } from './binding';
import { Context } from './context';
/**
* Events emitted by a context
*/
export declare type ContextEvent = {
/**
* Source context that emits the event
*/
context: Context;
/**
* Binding that is being added/removed/updated
*/
binding: Readonly<Binding<unknown>>;
/**
* Event type
*/
type: string;
};
/**
* Synchronous listener for context events
*/
export declare type ContextEventListener = (event: ContextEvent) => void;