UNPKG

curli-bus

Version:

Simple Command Bus Implementation (CQRS) for NodeJS/Typescript.

21 lines (18 loc) 422 B
export type Event = { /** * The event name, It must be the same as the event Subscriber return in getEventName */ eventName: string, /** * The event data */ data: {[key:string]: any} /** * The date when it occurred, The service set it if none is provided. */ dateTimeOccurred?: Date; /** * An id for the event */ id?: string, }