UNPKG

curli-bus

Version:

Simple Command Bus Implementation (CQRS) for NodeJS/Typescript.

7 lines (5 loc) 243 B
import {CommandInstanceType} from './CommandInstanceType'; import {QueryInstanceType} from './QueryInstanceType'; export type HandlerType = { handleCommand <T>(request: CommandInstanceType | QueryInstanceType, options?: T): any; };