UNPKG

@typescript-eda/application

Version:

Application layer orchestration and dependency injection for TypeScript-EDA event-driven architecture

18 lines 654 B
/** * @fileoverview This file defines the PrimaryPort interface, which is an interface for primary adapters. * @author rydnr * @module application/primary-port */ import { Application } from './application'; /** * Represents a primary port, which is an entry point to the application. */ export interface PrimaryPort { /** * Accepts the application instance and starts the primary adapter. * @param {Application} app The application instance. * @returns {Promise<void>} A promise that resolves when the primary adapter has started. */ accept(app: Application): Promise<void>; } //# sourceMappingURL=primary-port.d.ts.map