UNPKG

@grubou/bussy

Version:

Command & query bus implementations

6 lines (5 loc) 167 B
import { Query } from './Query'; export interface QueryHandler<RESULT, QUERY extends Query<RESULT>> { name(): string; handle(query: QUERY): Promise<RESULT>; }