@eventstore.net/event.store
Version:
A simple and fast EventStore that support multiple persistence and notification providers
22 lines (21 loc) • 467 B
text/typescript
/**
* An Event in the stream of events
*/
export interface Event {
/**
* The event payload. The payload can be any data associated with the event
*/
payload: any;
/**
* The time where the event was persisted in the {@link EventStream}
*/
commitTimestamp?: number;
/**
* The sequence order for the event in the {@link EventStream}
*/
sequence?: number;
/**
* The Event type
*/
type?: string;
}