UNPKG

@grubou/bussy

Version:

Command & query bus implementations

9 lines (6 loc) 249 B
import { Command } from './Command'; import { CommandResponse } from './CommandResponse'; export interface CommandHandler<RESULT, COMMAND extends Command<RESULT>> { name(): string; handle(command: COMMAND): Promise<CommandResponse<RESULT>>; }