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.

5 lines (4 loc) 132 B
import { Message } from './message'; export interface MessageBus<T extends Message> { execute(message: T): Promise<void>; }