Files
gridpilot.gg/core/shared/ports/EventPublisher.ts
Marc Mintel afef777961
Some checks failed
CI / lint-typecheck (pull_request) Failing after 12s
CI / tests (pull_request) Has been skipped
CI / contract-tests (pull_request) Has been skipped
CI / e2e-tests (pull_request) Has been skipped
CI / comment-pr (pull_request) Has been skipped
CI / commit-types (pull_request) Has been skipped
code quality
2026-01-26 02:27:37 +01:00

20 lines
372 B
TypeScript

/**
* EventPublisher Port
*
* Defines the interface for publishing domain events.
* This port is implemented by adapters that can publish events.
*/
export interface EventPublisher {
/**
* Publish a domain event
*/
publish(event: DomainEvent): Promise<void>;
}
export interface DomainEvent {
type: string;
timestamp: Date;
[key: string]: unknown;
}