node-ts-architecture-module
Version:
node-ts architecture module
10 lines (9 loc) • 329 B
TypeScript
import ICommand from './ICommand';
import ICommandHandler from './ICommandHandler';
export default class CommandBusContainer {
private map;
constructor();
getHandler(command: ICommand): ICommandHandler;
addHandler(command: string, commandHandler: string): void;
addHandlers(map: Map<string, string>): void;
}