@grubou/bussy
Version:
Command & query bus implementations
10 lines (9 loc) • 457 B
TypeScript
import { Command } from './types/Command';
import { CommandBus } from './types/CommandBus';
import { CommandResponse } from './types/CommandResponse';
import { CommandMiddleware } from './middlewares/CommandMiddleware';
export declare class InternalCommandBus<RESULT> implements CommandBus {
private middlewareChain;
constructor(middlewareChain: CommandMiddleware<RESULT>);
publish(command: Command<RESULT>): Promise<CommandResponse<RESULT>>;
}