@cashfarm/plow
Version:
Library for validating input data and parameters
9 lines (8 loc) • 366 B
TypeScript
import { ConcreteType } from '@cashfarm/lang';
import { IDomainEvent } from '../domain/domainEvent';
export declare const IEventBus: symbol;
export interface IEventBus {
subscribe(evt: IDomainEvent & ConcreteType<{}>, handler: Object): void;
unsubscribe(evt: IDomainEvent & ConcreteType<{}>, handler: Object): void;
publish(event: IDomainEvent): void;
}