UNPKG

@grubou/bussy

Version:

Command & query bus implementations

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