UNPKG

hex-architect

Version:

A collection of components for creating hexagonal architecture with ports and adapters which allows for clean separation of the application and domain layers from the execution environment.

6 lines (5 loc) 180 B
import { Message } from './message'; import { Result } from './result'; export interface MessageHandler<T extends Message> { handle(command: T): Promise<void | Result>; }