UNPKG

@robotlegsjs/createjs

Version:
27 lines (26 loc) 613 B
import { IClass, ITypeFilter } from "@robotlegsjs/core"; /** * Represents a Mediator mapping */ export interface IMediatorMapping { /** * The matcher for this mapping */ matcher: ITypeFilter; /** * The concrete mediator class */ mediatorClass: IClass<any>; /** * A list of guards to check before allowing mediator creation */ guards: any[]; /** * A list of hooks to run before creating a mediator */ hooks: any[]; /** * Should the mediator be removed when the mediated item looses scope? */ autoRemoveEnabled: boolean; }