Skip to content

Instantly share code, notes, and snippets.

@leegilmorecode
Created December 3, 2022 04:35
Show Gist options
  • Save leegilmorecode/12cef18db446103d7e714e3d7d19e957 to your computer and use it in GitHub Desktop.
Save leegilmorecode/12cef18db446103d7e714e3d7d19e957 to your computer and use it in GitHub Desktop.
Example of our domain event models and interfaces
export type DomainEvent = {
source: string;
eventName: string;
event: Record<string, any>;
eventDateTime: string;
eventVersion: string;
};
export interface ICreateDomainEvent {
source: string;
eventName: string;
event: Record<string, any>;
eventSchema?: Record<string, any>;
eventVersion: string;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment