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) 167 B
import { Message } from './message'; import { Port } from './port'; export interface InPort<I extends Message, O> extends Port<I, O> { inject(input: I): O; }